summaryrefslogtreecommitdiff
path: root/test/correctness/tester.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/correctness/tester.cpp')
-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)