summaryrefslogtreecommitdiff
path: root/test/routines/level2/xsbmv.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level2/xsbmv.hpp')
-rw-r--r--test/routines/level2/xsbmv.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/routines/level2/xsbmv.hpp b/test/routines/level2/xsbmv.hpp
index 94e60dd2..efcdbe34 100644
--- a/test/routines/level2/xsbmv.hpp
+++ b/test/routines/level2/xsbmv.hpp
@@ -117,6 +117,19 @@ class TestXsbmv {
}
#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 = cublasXsbmv(args.layout,
+ convertToCUBLAS(args.triangle),
+ args.n, args.kl, args.alpha,
+ buffers.a_mat, args.a_offset, args.a_ld,
+ buffers.x_vec, args.x_offset, args.x_inc, args.beta,
+ buffers.y_vec, args.y_offset, args.y_inc);
+ 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.y_size, static_cast<T>(0));