diff options
Diffstat (limited to 'test/routines/level3/xher2k.h')
-rw-r--r-- | test/routines/level3/xher2k.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/routines/level3/xher2k.h b/test/routines/level3/xher2k.h index f13e8a62..b20ec973 100644 --- a/test/routines/level3/xher2k.h +++ b/test/routines/level3/xher2k.h @@ -68,8 +68,7 @@ class TestXher2k { static size_t DefaultLDC(const Arguments<U> &args) { return args.n; } // Describes how to run the CLBlast routine - static StatusCode RunRoutine(const Arguments<U> &args, const Buffers &buffers, - CommandQueue &queue) { + static StatusCode RunRoutine(const Arguments<U> &args, const Buffers<T> &buffers, Queue &queue) { auto queue_plain = queue(); auto event = cl_event{}; auto alpha2 = T{args.alpha, args.alpha}; @@ -84,8 +83,7 @@ class TestXher2k { } // Describes how to run the clBLAS routine (for correctness/performance comparison) - static StatusCode RunReference(const Arguments<U> &args, const Buffers &buffers, - CommandQueue &queue) { + static StatusCode RunReference(const Arguments<U> &args, const Buffers<T> &buffers, Queue &queue) { auto queue_plain = queue(); auto event = cl_event{}; auto alpha2 = T{args.alpha, args.alpha}; @@ -102,10 +100,9 @@ class TestXher2k { } // Describes how to download the results of the computation (more importantly: which buffer) - static std::vector<T> DownloadResult(const Arguments<U> &args, Buffers &buffers, - CommandQueue &queue) { + static std::vector<T> DownloadResult(const Arguments<U> &args, Buffers<T> &buffers, Queue &queue) { std::vector<T> result(args.c_size, static_cast<T>(0)); - buffers.c_mat.ReadBuffer(queue, args.c_size*sizeof(T), result); + buffers.c_mat.Read(queue, args.c_size, result); return result; } |