diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-07-27 07:18:06 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-07-27 07:18:06 +0200 |
commit | f7199b831f847340f0921ef2140a4e64809db037 (patch) | |
tree | d725b7e63b0662598ad4be0a4c2457820ded8ed4 /test/routines/level3/xtrmm.h | |
parent | b10f4a633c4ffb3bb04d35503396ff94528df4d0 (diff) |
Now using the new Claduc C++11 OpenCL header
Diffstat (limited to 'test/routines/level3/xtrmm.h')
-rw-r--r-- | test/routines/level3/xtrmm.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/routines/level3/xtrmm.h b/test/routines/level3/xtrmm.h index 7b7e7af1..d5a52903 100644 --- a/test/routines/level3/xtrmm.h +++ b/test/routines/level3/xtrmm.h @@ -61,8 +61,7 @@ class TestXtrmm { static size_t DefaultLDC(const Arguments<T> &) { return 1; } // N/A for this routine // Describes how to run the CLBlast routine - static StatusCode RunRoutine(const Arguments<T> &args, const Buffers &buffers, - CommandQueue &queue) { + static StatusCode RunRoutine(const Arguments<T> &args, const Buffers<T> &buffers, Queue &queue) { auto queue_plain = queue(); auto event = cl_event{}; auto status = Trmm(args.layout, args.side, args.triangle, args.a_transpose, args.diagonal, @@ -75,8 +74,7 @@ class TestXtrmm { } // Describes how to run the clBLAS routine (for correctness/performance comparison) - static StatusCode RunReference(const Arguments<T> &args, const Buffers &buffers, - CommandQueue &queue) { + static StatusCode RunReference(const Arguments<T> &args, const Buffers<T> &buffers, Queue &queue) { auto queue_plain = queue(); auto event = cl_event{}; auto status = clblasXtrmm(static_cast<clblasOrder>(args.layout), @@ -93,10 +91,9 @@ class TestXtrmm { } // Describes how to download the results of the computation (more importantly: which buffer) - static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers &buffers, - CommandQueue &queue) { + static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) { std::vector<T> result(args.b_size, static_cast<T>(0)); - buffers.b_mat.ReadBuffer(queue, args.b_size*sizeof(T), result); + buffers.b_mat.Read(queue, args.b_size, result); return result; } |