summaryrefslogtreecommitdiff
path: root/test/routines/level2/xsyr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level2/xsyr.hpp')
-rw-r--r--test/routines/level2/xsyr.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/routines/level2/xsyr.hpp b/test/routines/level2/xsyr.hpp
index 2eb07f9b..8c62f586 100644
--- a/test/routines/level2/xsyr.hpp
+++ b/test/routines/level2/xsyr.hpp
@@ -110,6 +110,18 @@ class TestXsyr {
}
#endif
+ // 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 &) {
+ auto status = cublasXsyr(args.layout,
+ convertToCUBLAS(args.triangle),
+ args.n, args.alpha,
+ buffers.x_vec, args.x_offset, args.x_inc,
+ buffers.a_mat, args.a_offset, args.a_ld);
+ if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; }
+ }
+ #endif
+
// Describes how to download the results of the computation (more importantly: which buffer)
static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
std::vector<T> result(args.a_size, static_cast<T>(0));