summaryrefslogtreecommitdiff
path: root/test/routines/level3/xtrsm.hpp
diff options
context:
space:
mode:
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;