summaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-03-12 10:41:18 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-03-12 10:41:18 +0100
commit068ff32e9f8094bf848cbc5bd250a8f25776960e (patch)
tree9932e20036b2e03c25e2c008dd46ff8a7a6a2ea7 /test/performance
parent7b8f8fce6808f2095a68afe97256db7a78f819fa (diff)
Fixed a linker issue for Clang
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/client.cpp2
-rw-r--r--test/performance/client.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/performance/client.cpp b/test/performance/client.cpp
index bd48b047..e86145f8 100644
--- a/test/performance/client.cpp
+++ b/test/performance/client.cpp
@@ -24,6 +24,8 @@
namespace clblast {
// =================================================================================================
+template <typename T, typename U> const auto Client<T,U>::kSeed = 42; // fixed seed for reproducibility
+
// Constructor
template <typename T, typename U>
Client<T,U>::Client(const Routine run_routine,
diff --git a/test/performance/client.hpp b/test/performance/client.hpp
index 4b3e17c7..b5cc1465 100644
--- a/test/performance/client.hpp
+++ b/test/performance/client.hpp
@@ -40,7 +40,7 @@ namespace clblast {
template <typename T, typename U>
class Client {
public:
- static constexpr auto kSeed = 42; // fixed seed for reproducibility
+ static const int kSeed;
// Shorthand for the routine-specific functions passed to the tester
using Routine = std::function<StatusCode(const Arguments<U>&, Buffers<T>&, Queue&)>;