PAPI  5.0.1.0
PAPI_ipc Class Reference

Get instructions per cycle, real and processor time. More...


Detailed Description

C Interface:
#include <papi.h>
int PAPI_ipc( float *rtime, float *ptime, long long *ins, float *ipc );
Parameters:
*rtimetotal realtime since the first PAPI_flops() call
*ptimetotal process time since the first PAPI_flops() call
*instotal instructions since the first call
*ipcinstructions per cycle achieved since the previous call
Return values:
PAPI_EINVALThe counters were already started by something other than: PAPI_ipc()
PAPI_ENOEVNTThe total instructions or total cycles event does not exist.
PAPI_ENOMEMInsufficient memory to complete the operation.

The first call to PAPI_ipc() will initialize the PAPI High Level interface, set up the counters to monitor PAPI_TOT_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 instructions since the start of the measurement and the instructions per cycle rate since latest call to PAPI_ipc(). A call to PAPI_stop_counters() will stop the counters from running and then calls such as PAPI_start_counters() can safely be used.

See also:
PAPI_flops() PAPI_stop_counters() PAPI_set_opt() PAPI_flips()

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines