summaryrefslogtreecommitdiff
path: root/test/routines
diff options
context:
space:
mode:
authorcnugteren <web@cedricnugteren.nl>2016-05-08 10:06:06 +0200
committercnugteren <web@cedricnugteren.nl>2016-05-08 10:06:06 +0200
commit1acb31896c2e6cabea2b2d8fe9511d3726743b54 (patch)
tree4ee83d87f1d83f16bc96a7b0ef0b43a812445b7f /test/routines
parented2904a34471b10fcfc60dd4034e4a76eb5428cf (diff)
Fixed an issue with computing the GFLOPS numbers for the xGEMM performance tests for non-square matrices
Diffstat (limited to 'test/routines')
-rw-r--r--test/routines/level3/xgemm.h4
1 files 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<T> &args) {
- return 2 * args.m * args.n * args.m;
+ return 2 * args.m * args.n * args.k;
}
static size_t GetBytes(const Arguments<T> &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);
}
};