Correct index variables used in MFlops calculation
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 27 Mar 2018 19:52:29 +0000 (21:52 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Mar 2018 19:52:29 +0000 (21:52 +0200)
Fixes #1474

benchmark/gemm.c

index 809813c..85bcbc7 100644 (file)
@@ -237,7 +237,7 @@ int main(int argc, char *argv[]){
     timeg = time1/loops;
     fprintf(stderr,
            " %10.2f MFlops %10.6f sec\n",
-           COMPSIZE * COMPSIZE * 2. * (double)m * (double)m * (double)n / timeg * 1.e-6, time1);
+           COMPSIZE * COMPSIZE * 2. * (double)k * (double)m * (double)n / timeg * 1.e-6, time1);
     
   }