summaryrefslogtreecommitdiff
path: root/test/routines/level3/xherk.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level3/xherk.h')
-rw-r--r--test/routines/level3/xherk.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/routines/level3/xherk.h b/test/routines/level3/xherk.h
index 780b9b52..20c2b4b8 100644
--- a/test/routines/level3/xherk.h
+++ b/test/routines/level3/xherk.h
@@ -61,8 +61,7 @@ class TestXherk {
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 status = Herk(args.layout, args.triangle, args.a_transpose,
@@ -75,8 +74,7 @@ class TestXherk {
}
// 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 status = clblasXherk(static_cast<clblasOrder>(args.layout),
@@ -91,10 +89,9 @@ class TestXherk {
}
// 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;
}