23 float real_time, proc_time,ipc;
25 float real_time_i, proc_time_i, ipc_i;
31 printf(
"Could not initialise PAPI_ipc \n");
32 printf(
"retval: %d\n",
retval);
41 printf(
"retval: %d\n",
retval);
46 printf(
"Real_time: %f Proc_time: %f Instructions: %lld IPC: %f\n",
47 real_time, proc_time,ins,ipc);
Simplified call to get instructions per cycle, real and processor time.
Finish using PAPI and free all related resources.
Return codes and api definitions.