PAPI 7.1.0.0
Loading...
Searching...
No Matches
PAPI_flips_rate Class Reference

Simplified call to get Mflips/s (floating point instruction rate), real and processor time. More...

Detailed Description

C Interface:
#include <papi.h>
int PAPI_flips_rate( int event, float *rtime, float *ptime, long long *flpins, float *mflips );
Parameters
eventone of the three presets PAPI_FP_INS, PAPI_VEC_SP or PAPI_VEC_DP
*rtimerealtime since the latest call
*ptimeprocess time since the latest call
*flpinsfloating point instructions since the latest call
*mflipsincremental (Mega) floating point instructions per seconds since the latest call
Return values
PAPI_EINVALThe counters were already started by something other than PAPI_flips_rate().
PAPI_ENOEVNTThe floating point instructions event does not exist.
PAPI_ENOMEMInsufficient memory to complete the operation.

The first call to PAPI_flips_rate() will initialize the PAPI interface, set up the counters to monitor the floating point instructions event and start the counters.

Subsequent calls will read the counters and return real time, process time, floating point instructions and the Mflip/s rate since the latest call to PAPI_flips_rate().

PAPI_flips_rate() returns information related to floating point instructions using the floating point instructions event. This is intended to measure instruction rate through the floating point pipe with no massaging. Note that PAPI_flips_rate() is thread-safe and can therefore be called by multiple threads.

See also
PAPI_flops_rate()
PAPI_ipc()
PAPI_epc()

The documentation for this class was generated from the following file: