17#define ERROR_RETURN(retval) { fprintf(stderr, "Error %d %s:line %d: \n", retval,__FILE__,__LINE__); exit(retval); }
19#define NUM_ITERS 10000000
46 printf(
"Library initialization error! \n");
78 printf(
"Adding %s\n", pset.
symbol);
85 printf(
"Added %s\n", pset.
symbol);
87 printf(
"Could not add %s due to resource limitation.\n",
101 printf(
"Not enough memory available. \n");
125 printf(
"Event name: %s value: %lld \n", pset.
symbol,
values[
i]);
145 printf(
"Using %d iterations\n\n",
NUM_ITERS);
146 printf(
"Does PAPI_multiplex_init() handle lots of events?\n");
add PAPI preset or native hardware event to an event set
Empty and destroy an EventSet.
Create a new empty PAPI EventSet.
Empty and destroy an EventSet.
Get the event's name and description info.
initialize the PAPI library.
list the events in an event set
Initialize multiplex support in the PAPI library.
Convert a standard event set to a multiplexed 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.
char events[MAX_EVENTS][BUFSIZ]
static long long values[NUM_EVENTS]
static double a[MATRIX_SIZE][MATRIX_SIZE]
static double b[MATRIX_SIZE][MATRIX_SIZE]
#define ERROR_RETURN(retval)
#define PAPI_MAX_PRESET_EVENTS
Return codes and api definitions.
char symbol[PAPI_HUGE_STR_LEN]