Browse Source

Benchmark: Add MFlops print in iamax benchmark

tags/v0.2.20^2
Ashwin Sekhar T K 8 years ago
parent
commit
efda640723
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      benchmark/iamax.c

+ 4
- 2
benchmark/iamax.c 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);

}



Loading…
Cancel
Save