26{
27 float real_time, proc_time,mflips;
28 long long flpins;
29 float ireal_time, iproc_time, imflips;
30 long long iflpins;
32
33
34
35
36
37
38
39
40
41
43 {
44 printf("Could not initialise PAPI_flips \n");
45 printf(
"Your platform may not support floating point instruction event.\n"); printf(
"retval: %d\n",
retval);
46 exit(1);
47 }
48
50
51
53 {
54 printf(
"retval: %d\n",
retval);
55 exit(1);
56 }
57
58
59 printf("Real_time: %f Proc_time: %f flpins: %lld MFLIPS: %f\n",
60 real_time, proc_time,flpins,mflips);
61
62 exit(0);
63}
Simplified call to get Mflips/s (floating point instruction rate), real and processor time.