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;
33 printf(
"Could not initialise PAPI_epc \n");
34 printf(
"retval: %d\n",
retval);
43 printf(
"retval: %d\n",
retval);
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);
Simplified call to get arbitrary events per cycle, real and processor time.
Finish using PAPI and free all related resources.
Return codes and api definitions.