NAME
PAPI_flops - PAPI High level: Simplified call to get Mflops/s, real and processor time
CONTENTS
Synopsis
Description
Arguments
Return Values
Notes
Bugs
See Also
SYNOPSIS
C Interface
#include <papi.h>
int PAPI_flops (float *rtime, float *ptime, long_long *flpins, float *mflops);
Fortran Interface
#include fpapi.h
PAPIF_flops(C_FLOAT real_time, C_FLOAT proc_time, C_LONG_LONG flpins, C_FLOAT mflops, C_INT check)
DESCRIPTION
The first call to
PAPI_flops() will initialize PAPI, set up the counters
to monitor PAPI_FP_INS and PAPI_TOT_CYC events and start the counters.
Subsequent calls will read the counters and return total real time,
total process time, total floating point instructions since the start
of the measurement and Mflops/s rate since latest call to
PAPI_flops() . Any call with
flpins = -1 will reinitialize all counters to 0.
ARGUMENTS
*rtime -- total realtime since the first PAPI_flops() call
*ptime -- total process time since the first PAPI_flops() call
*flpins -- total floating point instructions since the first PAPI_flops() call
*mflops -- Mflops/s achieved since the latest PAPI_flops() call
RETURN VALUES
On success, this function returns
PAPI_OK.
On error, a non-zero error code is returned.
NOTES
Most platforms are only capable of counting the number of floating
point instructions completed. This may or may not translate to your
definition of floating point operations. The measured rate is thus
Mflips/s, and will in some circumstances count FMA instructions as one
operation. Consult the hardware documentation for your system for specifics.
PAPI_flops() may be called by:
the user application program
PAPI_flops() contains calls to:
PAPI_perror()
PAPI_library_init()
PAPI_get_hardware_info()
PAPI_create_eventset()
PAPI_add_event()
PAPI_start()
PAPI_get_real_usec()
PAPI_accum()
PAPI_shutdown()
BUGS
This function has no known bugs.
SEE ALSO
PAPI_accum (3),
The PAPI Web Site:
http://icl.cs.utk.edu/projects/papi
| PAPI Function Reference | PAPI_flops (3) | December, 2001 |
|