summaryrefslogtreecommitdiff
path: root/test/routines/level3
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-04-11 21:50:18 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-04-11 21:50:18 +0200
commitf24c142948fc71d8b37826c1275259668fe0d0e5 (patch)
treef7fd8698b5cf823629a98d3f3399e311ca3be65a /test/routines/level3
parent6b625f8915ce0596d65187bd3a8eb47e91a0084e (diff)
Made compilation of the cuBLAS wrapper work properly
Diffstat (limited to 'test/routines/level3')
-rw-r--r--test/routines/level3/xher2k.hpp3
-rw-r--r--test/routines/level3/xherk.hpp2
-rw-r--r--test/routines/level3/xsyrk.hpp4
3 files changed, 5 insertions, 4 deletions
diff --git a/test/routines/level3/xher2k.hpp b/test/routines/level3/xher2k.hpp
index b341c4d7..2b0fff64 100644
--- a/test/routines/level3/xher2k.hpp
+++ b/test/routines/level3/xher2k.hpp
@@ -130,7 +130,8 @@ class TestXher2k {
// Describes how to run the cuBLAS routine (for correctness/performance comparison)
#ifdef CLBLAST_REF_CUBLAS
- static StatusCode RunReference3(const Arguments<T> &args, BuffersCUDA<T> &buffers, Queue &) {
+ static StatusCode RunReference3(const Arguments<U> &args, BuffersCUDA<T> &buffers, Queue &) {
+ auto alpha2 = T{args.alpha, args.alpha};
auto status = cublasXher2k(args.layout,
convertToCUBLAS(args.triangle),
convertToCUBLAS(args.a_transpose),
diff --git a/test/routines/level3/xherk.hpp b/test/routines/level3/xherk.hpp
index 676d5286..3a676f59 100644
--- a/test/routines/level3/xherk.hpp
+++ b/test/routines/level3/xherk.hpp
@@ -117,7 +117,7 @@ class TestXherk {
// Describes how to run the cuBLAS routine (for correctness/performance comparison)
#ifdef CLBLAST_REF_CUBLAS
- static StatusCode RunReference3(const Arguments<T> &args, BuffersCUDA<T> &buffers, Queue &) {
+ static StatusCode RunReference3(const Arguments<U> &args, BuffersCUDA<T> &buffers, Queue &) {
auto status = cublasXherk(args.layout,
convertToCUBLAS(args.triangle),
convertToCUBLAS(args.a_transpose),
diff --git a/test/routines/level3/xsyrk.hpp b/test/routines/level3/xsyrk.hpp
index 2ee24a2e..34f8f41a 100644
--- a/test/routines/level3/xsyrk.hpp
+++ b/test/routines/level3/xsyrk.hpp
@@ -122,8 +122,8 @@ class TestXsyrk {
convertToCUBLAS(args.triangle),
convertToCUBLAS(args.a_transpose),
args.n, args.k, args.alpha,
- buffer.a_mat, args.a_offset, args.a_ld, args.beta,
- buffer.c_mat, args.c_offset, args.c_ld);
+ buffers.a_mat, args.a_offset, args.a_ld, args.beta,
+ buffers.c_mat, args.c_offset, args.c_ld);
if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; }
}
#endif