14#define THRESHOLD 10000
15#define ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); }
21 float real_time, proc_time, ipc;
35 printf(
"Results from PAPI_ipc:\n");
36 printf(
"Real_time: %f Proc_time: %f Instructions: %lld IPC: %f\n",
37 real_time, proc_time,ins,ipc);
61 printf(
"Results from the low-level API:\n");
62 printf(
"IPC: %f\n", ipc);
#define ERROR_RETURN(retval)
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
Simplified call to get instructions per cycle, real and processor time.
Stop a running event set of a rate function.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static long long values[NUM_EVENTS]
Return codes and api definitions.