Benchmark: Add MFlops print in iamax benchmark

This commit is contained in:
Ashwin Sekhar T K 2017-01-24 23:13:47 -08:00
parent 1530e78cfe
commit efda640723
1 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,7 @@ int main(int argc, char *argv[]){
srandom(getpid());
#endif
fprintf(stderr, " SIZE Time\n");
fprintf(stderr, " SIZE Flops\n");
for(m = from; m <= to; m += step)
{
@ -180,7 +180,9 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr, " %10.6f secs\n", timeg);
fprintf(stderr,
" %10.2f MFlops %10.6f sec\n",
COMPSIZE * sizeof(FLOAT) * 1. * (double)m / timeg * 1.e-6, timeg);
}