From 1acb31896c2e6cabea2b2d8fe9511d3726743b54 Mon Sep 17 00:00:00 2001 From: cnugteren Date: Sun, 8 May 2016 10:06:06 +0200 Subject: [PATCH] Fixed an issue with computing the GFLOPS numbers for the xGEMM performance tests for non-square matrices --- test/routines/level3/xgemm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/routines/level3/xgemm.h b/test/routines/level3/xgemm.h index 10fc2803..cd5c2acd 100644 --- a/test/routines/level3/xgemm.h +++ b/test/routines/level3/xgemm.h @@ -153,10 +153,10 @@ class TestXgemm { // Describes how to compute performance metrics static size_t GetFlops(const Arguments &args) { - return 2 * args.m * args.n * args.m; + return 2 * args.m * args.n * args.k; } static size_t GetBytes(const Arguments &args) { - return (args.m*args.m + args.m*args.n + 2*args.m*args.n) * sizeof(T); + return (args.m*args.k + args.k*args.n + 2*args.m*args.n) * sizeof(T); } };