summaryrefslogtreecommitdiff
path: root/test/performance/client.h
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-07-27 07:18:06 +0200
committerCNugteren <web@cedricnugteren.nl>2015-07-27 07:18:06 +0200
commitf7199b831f847340f0921ef2140a4e64809db037 (patch)
treed725b7e63b0662598ad4be0a4c2457820ded8ed4 /test/performance/client.h
parentb10f4a633c4ffb3bb04d35503396ff94528df4d0 (diff)
Now using the new Claduc C++11 OpenCL header
Diffstat (limited to 'test/performance/client.h')
-rw-r--r--test/performance/client.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/performance/client.h b/test/performance/client.h
index c9095967..9f6852d0 100644
--- a/test/performance/client.h
+++ b/test/performance/client.h
@@ -38,11 +38,8 @@ template <typename T, typename U>
class Client {
public:
- // Types of devices to consider
- const cl_device_type kDeviceType = CL_DEVICE_TYPE_ALL;
-
// Shorthand for the routine-specific functions passed to the tester
- using Routine = std::function<StatusCode(const Arguments<U>&, const Buffers&, CommandQueue&)>;
+ using Routine = std::function<StatusCode(const Arguments<U>&, const Buffers<T>&, Queue&)>;
using SetMetric = std::function<void(Arguments<U>&)>;
using GetMetric = std::function<size_t(const Arguments<U>&)>;
@@ -63,8 +60,8 @@ class Client {
private:
// Runs a function a given number of times and returns the execution time of the shortest instance
- double TimedExecution(const size_t num_runs, const Arguments<U> &args, const Buffers &buffers,
- CommandQueue &queue, Routine run_blas, const std::string &library_name);
+ double TimedExecution(const size_t num_runs, const Arguments<U> &args, const Buffers<T> &buffers,
+ Queue &queue, Routine run_blas, const std::string &library_name);
// Prints the header of a performance-data table
void PrintTableHeader(const bool silent, const std::vector<std::string> &args);