16#define THRESHOLD 100000
17#define ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); }
39 fprintf(
stderr,
"Error: %s\n", errstring);
68 printf(
"\nThe total instructions executed are %lld, total cycles %lld\n",
#define ERROR_RETURN(retval)
add multiple PAPI presets or native hardware events to an event set
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
initialize the PAPI library.
Remove an array of hardware event codes from a PAPI event set.
Finish using PAPI and free all related resources.
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.