diff options
author | Ashwin Sekhar T K <ashwin.sekhar@cavium.com> | 2017-01-24 23:13:47 -0800 |
---|---|---|
committer | Ashwin Sekhar T K <ashwin.sekhar@cavium.com> | 2017-01-24 23:13:47 -0800 |
commit | efda640723cc7f345b3109bb570355f43c44a407 (patch) | |
tree | ba8dd95c81fa1c7a29caca21317fb0eca14f6d81 /benchmark | |
parent | 1530e78cfe4c5dfbe14a7925219de26163d499f2 (diff) | |
download | openblas-efda640723cc7f345b3109bb570355f43c44a407.tar.gz openblas-efda640723cc7f345b3109bb570355f43c44a407.tar.bz2 openblas-efda640723cc7f345b3109bb570355f43c44a407.zip |
Benchmark: Add MFlops print in iamax benchmark
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/iamax.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmark/iamax.c b/benchmark/iamax.c index c55f41579..034e24ea9 100644 --- a/benchmark/iamax.c +++ b/benchmark/iamax.c @@ -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); } |