summaryrefslogtreecommitdiff
path: root/test/routines/level3/xtrsm.hpp
diff options
context:
space:
mode:
authorJishinMaster <francois.turban@gmail.com>2021-03-07 21:44:20 +0100
committerJishinMaster <francois.turban@gmail.com>2021-03-13 21:48:04 +0100
commitaec45ea63755a7a9414d7c6a81d570200e948806 (patch)
treec2ec91cfcc73fe29de643afc07a68ede3bd39c36 /test/routines/level3/xtrsm.hpp
parentce44c3adb57fc8d464a41d3db8103dc3fe0e86c4 (diff)
set the correct flop count for xgemm
Diffstat (limited to 'test/routines/level3/xtrsm.hpp')
-rw-r--r--test/routines/level3/xtrsm.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/routines/level3/xtrsm.hpp b/test/routines/level3/xtrsm.hpp
index 66c8f415..9560b116 100644
--- a/test/routines/level3/xtrsm.hpp
+++ b/test/routines/level3/xtrsm.hpp
@@ -173,7 +173,13 @@ class TestXtrsm {
// Describes how to compute performance metrics
static size_t GetFlops(const Arguments<T> &args) {
auto k = (args.side == Side::kLeft) ? args.m : args.n;
- return args.m * args.n * k;
+ if((args.precision == Precision::kComplexSingle) || (args.precision == Precision::kComplexDouble)) {
+ // complex flops
+ return 4 * args.m * args.n * k;
+ } else {
+ // scalar flops
+ return args.m * args.n * k;
+ }
}
static size_t GetBytes(const Arguments<T> &args) {
auto k = (args.side == Side::kLeft) ? args.m : args.n;