diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-04-13 21:31:27 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-04-13 21:31:27 +0200 |
commit | f7f8ec644f51d16f888b6a7086009b79c0beef8f (patch) | |
tree | 88f652bba2a980b44010f415ed5d48af15d0b063 /test/routines/level1/xasum.hpp | |
parent | f24c142948fc71d8b37826c1275259668fe0d0e5 (diff) |
Fixed CUDA malloc and cuBLAS handles: cuBLAS as a performance-reference now works
Diffstat (limited to 'test/routines/level1/xasum.hpp')
-rw-r--r-- | test/routines/level1/xasum.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level1/xasum.hpp b/test/routines/level1/xasum.hpp index e7e41fe5..6add9c64 100644 --- a/test/routines/level1/xasum.hpp +++ b/test/routines/level1/xasum.hpp @@ -106,7 +106,7 @@ class TestXasum { // 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 = cublasXasum(args.n, + auto status = cublasXasum(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.asum_offset, buffers.x_vec, args.x_offset, args.x_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } |