summaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-01-03 20:19:45 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-01-03 20:19:45 +0100
commiteb89371d2b36141ca94b1351c5217942a40d390c (patch)
tree2c891516a5081b4cf4ad73183cca1e9004ea7e7a /test/performance
parentad1227c4f2934b0f60c0030101e18b8fb21daf8c (diff)
Added a queue argument to the get-size function when running the tests/clients
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/client.cpp2
-rw-r--r--test/performance/client.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/performance/client.cpp b/test/performance/client.cpp
index 8b18b9a9..83088223 100644
--- a/test/performance/client.cpp
+++ b/test/performance/client.cpp
@@ -214,7 +214,7 @@ void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes)
while(true) {
// Sets the buffer sizes (routine-specific)
- set_sizes(args);
+ set_sizes(args, queue);
// Populates input host matrices with random data
std::vector<T> x_source(args.x_size);
diff --git a/test/performance/client.hpp b/test/performance/client.hpp
index 0b6176c8..eb224976 100644
--- a/test/performance/client.hpp
+++ b/test/performance/client.hpp
@@ -48,7 +48,7 @@ class Client {
using Reference1 = std::function<StatusCode(const Arguments<U>&, Buffers<T>&, Queue&)>;
using Reference2 = std::function<StatusCode(const Arguments<U>&, BuffersHost<T>&, Queue&)>;
using Reference3 = std::function<StatusCode(const Arguments<U>&, BuffersCUDA<T>&, Queue&)>;
- using SetMetric = std::function<void(Arguments<U>&)>;
+ using SetMetric = std::function<void(Arguments<U>&, Queue&)>;
using GetMetric = std::function<size_t(const Arguments<U>&)>;
// The constructor