projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1530e78
)
Benchmark: Add MFlops print in iamax benchmark
author
Ashwin Sekhar T K
<ashwin.sekhar@cavium.com>
Wed, 25 Jan 2017 07:13:47 +0000
(23:13 -0800)
committer
Ashwin Sekhar T K
<ashwin.sekhar@cavium.com>
Wed, 25 Jan 2017 07:13:47 +0000
(23:13 -0800)
benchmark/iamax.c
patch
|
blob
|
history
diff --git
a/benchmark/iamax.c
b/benchmark/iamax.c
index
c55f415
..
034e24e
100644
(file)
--- 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);
}