20{
21 float real_time, proc_time, ipc;
22 long long ins;
26
29
31
34
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);
38
41
42
45
50
53
55
58
60
61 printf("Results from the low-level API:\n");
62 printf("IPC: %f\n", ipc);
63
64 exit(0);
65}
#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]