25{
26 float real_time, proc_time,mflops;
27 long long flpops;
28 float ireal_time, iproc_time, imflops;
29 long long iflpops;
31
32
33
34
35
36
37
38
39
40
42 {
43 printf("Could not initialise PAPI_flops \n");
44 printf("Your platform may not support floating point operation event.\n");
45 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 flpops: %lld MFLOPS: %f\n",
60 real_time, proc_time,flpops,mflops);
61
62 exit(0);
63}
Simplified call to get Mflops/s (floating point operation rate), real and processor time.