From f7f8ec644f51d16f888b6a7086009b79c0beef8f Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 13 Apr 2017 21:31:27 +0200 Subject: Fixed CUDA malloc and cuBLAS handles: cuBLAS as a performance-reference now works --- test/routines/level1/xscal.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/routines/level1/xscal.hpp') diff --git a/test/routines/level1/xscal.hpp b/test/routines/level1/xscal.hpp index 09b53839..efa0988d 100644 --- a/test/routines/level1/xscal.hpp +++ b/test/routines/level1/xscal.hpp @@ -100,7 +100,7 @@ class TestXscal { // Describes how to run the cuBLAS routine (for correctness/performance comparison) #ifdef CLBLAST_REF_CUBLAS static StatusCode RunReference3(const Arguments &args, BuffersCUDA &buffers, Queue &) { - auto status = cublasXscal(args.n, args.alpha, + auto status = cublasXscal(reinterpret_cast(args.cublas_handle), args.n, args.alpha, buffers.x_vec, args.x_offset, args.x_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } } -- cgit v1.2.3