summaryrefslogtreecommitdiff
path: root/test/routines/level3/xsyrk.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level3/xsyrk.hpp')
-rw-r--r--test/routines/level3/xsyrk.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/routines/level3/xsyrk.hpp b/test/routines/level3/xsyrk.hpp
index 00a3013d..2ee24a2e 100644
--- a/test/routines/level3/xsyrk.hpp
+++ b/test/routines/level3/xsyrk.hpp
@@ -115,6 +115,19 @@ class TestXsyrk {
}
#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 = cublasXsyrk(args.layout,
+ 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);
+ 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.c_size, static_cast<T>(0));