diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-09-27 19:55:21 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-09-27 19:55:21 +0200 |
commit | 6178fcd5847b0531a3290fc7c1737dea4eba524c (patch) | |
tree | 135b359a8599d96b8745cf21faa07165904b5e1b /test/performance | |
parent | e3076d26ccb2bbe0869011d7f0664281f581d1e9 (diff) |
Now generates test/client/tuner data using a fixed seed to enable reproducability of results
Diffstat (limited to 'test/performance')
-rw-r--r-- | test/performance/client.cpp | 14 | ||||
-rw-r--r-- | test/performance/client.hpp | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/test/performance/client.cpp b/test/performance/client.cpp index aaaab22e..cbb10d10 100644 --- a/test/performance/client.cpp +++ b/test/performance/client.cpp @@ -178,13 +178,13 @@ void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes) std::vector<T> c_source(args.c_size); std::vector<T> ap_source(args.ap_size); std::vector<T> scalar_source(args.scalar_size); - PopulateVector(x_source); - PopulateVector(y_source); - PopulateVector(a_source); - PopulateVector(b_source); - PopulateVector(c_source); - PopulateVector(ap_source); - PopulateVector(scalar_source); + PopulateVector(x_source, kSeed); + PopulateVector(y_source, kSeed); + PopulateVector(a_source, kSeed); + PopulateVector(b_source, kSeed); + PopulateVector(c_source, kSeed); + PopulateVector(ap_source, kSeed); + PopulateVector(scalar_source, kSeed); // Creates the matrices on the device auto x_vec = Buffer<T>(context, args.x_size); diff --git a/test/performance/client.hpp b/test/performance/client.hpp index 6d35fced..381ba158 100644 --- a/test/performance/client.hpp +++ b/test/performance/client.hpp @@ -40,6 +40,7 @@ namespace clblast { template <typename T, typename U> class Client { public: + static constexpr auto kSeed = 42; // fixed seed for reproducibility // Shorthand for the routine-specific functions passed to the tester using Routine = std::function<StatusCode(const Arguments<U>&, Buffers<T>&, Queue&)>; |