diff options
-rw-r--r-- | test/correctness/testblas.cpp | 2 | ||||
-rw-r--r-- | test/correctness/testblas.hpp | 2 | ||||
-rw-r--r-- | test/performance/client.cpp | 2 | ||||
-rw-r--r-- | test/performance/client.hpp | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/test/correctness/testblas.cpp b/test/correctness/testblas.cpp index 56376d0b..4a620686 100644 --- a/test/correctness/testblas.cpp +++ b/test/correctness/testblas.cpp @@ -21,6 +21,8 @@ namespace clblast { // ================================================================================================= +template <typename T, typename U> const auto TestBlas<T,U>::kSeed = 42; // fixed seed for reproducibility + // Test settings for the regular test. Append to these lists in case more tests are required. template <typename T, typename U> const std::vector<size_t> TestBlas<T,U>::kVectorDims = { 7, 93, 4096 }; template <typename T, typename U> const std::vector<size_t> TestBlas<T,U>::kIncrements = { 1, 2, 7 }; diff --git a/test/correctness/testblas.hpp b/test/correctness/testblas.hpp index 42e8aef7..8c8db348 100644 --- a/test/correctness/testblas.hpp +++ b/test/correctness/testblas.hpp @@ -30,7 +30,7 @@ namespace clblast { template <typename T, typename U> class TestBlas: public Tester<T,U> { public: - static constexpr auto kSeed = 42; // fixed seed for reproducibility + static const int kSeed; // Uses several variables from the Tester class using Tester<T,U>::context_; 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&)>; |