Fixed a linker issue for Clang

This commit is contained in:
Cedric Nugteren 2017-03-12 10:41:18 +01:00
parent 7b8f8fce68
commit 068ff32e9f
4 changed files with 6 additions and 2 deletions

View file

@ -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 };

View file

@ -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_;

View file

@ -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,

View file

@ -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&)>;