24{
25 float real_time, proc_time, epc;
26 long long ref, core, evt;
27 float real_time_i, proc_time_i, epc_i;
28 long long ref_i, core_i, evt_i;
30
32 {
33 printf("Could not initialise PAPI_epc \n");
34 printf(
"retval: %d\n",
retval);
35 exit(1);
36 }
37
39
40
42 {
43 printf(
"retval: %d\n",
retval);
44 exit(1);
45 }
46
47
48 printf("Real_time: %f Proc_time: %f Ref_clock: %lld Core_clock: %lld Events: %lld EPC: %f\n",
49 real_time, proc_time, ref, core, evt, epc);
50
51
53 exit(0);
54}
Simplified call to get arbitrary events per cycle, real and processor time.
Finish using PAPI and free all related resources.