summaryrefslogtreecommitdiff
path: root/test/correctness
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-04-10 22:54:14 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-04-10 22:54:14 +0200
commit6b625f8915ce0596d65187bd3a8eb47e91a0084e (patch)
treeed16d34e567e52667f74131ff09f0673619dd661 /test/correctness
parent22b3ea9256bd197da3cd320560c14e5f3bd7fb86 (diff)
Added reference implementations for performance-testing against cuBLAS
Diffstat (limited to 'test/correctness')
-rw-r--r--test/correctness/tester.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/correctness/tester.cpp b/test/correctness/tester.cpp
index b352c1aa..d1f3cbb2 100644
--- a/test/correctness/tester.cpp
+++ b/test/correctness/tester.cpp
@@ -117,9 +117,15 @@ Tester<T,U>::Tester(const std::vector<std::string> &arguments, const bool silent
options_ = options;
// Determines which reference is the default
- auto default_clblas = 0;
- auto default_cblas = 0;
- auto default_cublas = 0;
+ #if defined(CLBLAST_REF_CBLAS)
+ auto default_cblas = 0;
+ #endif
+ #if defined(CLBLAST_REF_CLBLAS)
+ auto default_clblas = 0;
+ #endif
+ #if defined(CLBLAST_REF_CUBLAS)
+ auto default_cublas = 0;
+ #endif
#if defined(CLBLAST_REF_CBLAS)
default_cblas = 1;
#elif defined(CLBLAST_REF_CLBLAS)