summaryrefslogtreecommitdiff
path: root/test/routines/level3/xsyrk.h
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-07-31 15:52:13 +0200
committerCNugteren <web@cedricnugteren.nl>2015-07-31 15:52:13 +0200
commitc5d5adbddd9a7e1816e7666a2f287f8266ca2c19 (patch)
treee243248d73c3c46b0902c886cbe51599d8ec8c87 /test/routines/level3/xsyrk.h
parent6e1e7fdcaf9f544c98c3f8867d0f0f60bed252dd (diff)
Refactored the correctness tests
Diffstat (limited to 'test/routines/level3/xsyrk.h')
-rw-r--r--test/routines/level3/xsyrk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/routines/level3/xsyrk.h b/test/routines/level3/xsyrk.h
index c92693c2..8dacb5b3 100644
--- a/test/routines/level3/xsyrk.h
+++ b/test/routines/level3/xsyrk.h
@@ -29,6 +29,9 @@ template <typename T>
class TestXsyrk {
public:
+ // The BLAS level: 1, 2, or 3
+ static size_t BLASLevel() { return 3; }
+
// The list of arguments relevant for this routine
static std::vector<std::string> GetOptions() {
return {kArgN, kArgK,
@@ -60,6 +63,11 @@ class TestXsyrk {
static size_t DefaultLDB(const Arguments<T> &) { return 1; } // N/A for this routine
static size_t DefaultLDC(const Arguments<T> &args) { return args.n; }
+ // Describes which transpose options are relevant for this routine
+ using Transposes = std::vector<Transpose>;
+ static Transposes GetATransposes(const Transposes &) { return {Transpose::kNo, Transpose::kYes}; }
+ static Transposes GetBTransposes(const Transposes &) { return {}; } // N/A for this routine
+
// Describes how to run the CLBlast routine
static StatusCode RunRoutine(const Arguments<T> &args, const Buffers<T> &buffers, Queue &queue) {
auto queue_plain = queue();