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 | |
parent | f24c142948fc71d8b37826c1275259668fe0d0e5 (diff) |
Fixed CUDA malloc and cuBLAS handles: cuBLAS as a performance-reference now works
Diffstat (limited to 'test/routines/level1')
-rw-r--r-- | test/routines/level1/xamax.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xasum.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xaxpy.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xcopy.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xdot.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xdotc.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xdotu.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xnrm2.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xscal.hpp | 2 | ||||
-rw-r--r-- | test/routines/level1/xswap.hpp | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/test/routines/level1/xamax.hpp b/test/routines/level1/xamax.hpp index dcd48a47..04bdaa3d 100644 --- a/test/routines/level1/xamax.hpp +++ b/test/routines/level1/xamax.hpp @@ -106,7 +106,7 @@ class TestXamax { // 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 = cublasXamax(args.n, + auto status = cublasXamax(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.imax_offset, buffers.x_vec, args.x_offset, args.x_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } 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; } diff --git a/test/routines/level1/xaxpy.hpp b/test/routines/level1/xaxpy.hpp index 98f0e380..17cae6ad 100644 --- a/test/routines/level1/xaxpy.hpp +++ b/test/routines/level1/xaxpy.hpp @@ -107,7 +107,7 @@ class TestXaxpy { // 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 = cublasXaxpy(args.n, args.alpha, + auto status = cublasXaxpy(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, args.alpha, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } diff --git a/test/routines/level1/xcopy.hpp b/test/routines/level1/xcopy.hpp index 65e498ee..7a5c99b8 100644 --- a/test/routines/level1/xcopy.hpp +++ b/test/routines/level1/xcopy.hpp @@ -106,7 +106,7 @@ class TestXcopy { // 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 = cublasXcopy(args.n, + auto status = cublasXcopy(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } diff --git a/test/routines/level1/xdot.hpp b/test/routines/level1/xdot.hpp index c95b16ef..1ea25994 100644 --- a/test/routines/level1/xdot.hpp +++ b/test/routines/level1/xdot.hpp @@ -113,7 +113,7 @@ class TestXdot { // 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 = cublasXdot(args.n, + auto status = cublasXdot(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.dot_offset, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); diff --git a/test/routines/level1/xdotc.hpp b/test/routines/level1/xdotc.hpp index 0c99be25..c800c1f5 100644 --- a/test/routines/level1/xdotc.hpp +++ b/test/routines/level1/xdotc.hpp @@ -113,7 +113,7 @@ class TestXdotc { // 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 = cublasXdotc(args.n, + auto status = cublasXdotc(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.dot_offset, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); diff --git a/test/routines/level1/xdotu.hpp b/test/routines/level1/xdotu.hpp index bf6bcd80..3545a3a6 100644 --- a/test/routines/level1/xdotu.hpp +++ b/test/routines/level1/xdotu.hpp @@ -113,7 +113,7 @@ class TestXdotu { // 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 = cublasXdotu(args.n, + auto status = cublasXdotu(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.dot_offset, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); diff --git a/test/routines/level1/xnrm2.hpp b/test/routines/level1/xnrm2.hpp index 096604d1..1db70537 100644 --- a/test/routines/level1/xnrm2.hpp +++ b/test/routines/level1/xnrm2.hpp @@ -106,7 +106,7 @@ class TestXnrm2 { // 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 = cublasXnrm2(args.n, + auto status = cublasXnrm2(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.scalar, args.nrm2_offset, buffers.x_vec, args.x_offset, args.x_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } 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<T> &args, BuffersCUDA<T> &buffers, Queue &) { - auto status = cublasXscal(args.n, args.alpha, + auto status = cublasXscal(reinterpret_cast<cublasHandle_t>(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; } } diff --git a/test/routines/level1/xswap.hpp b/test/routines/level1/xswap.hpp index 0d6fe451..d778cc23 100644 --- a/test/routines/level1/xswap.hpp +++ b/test/routines/level1/xswap.hpp @@ -106,7 +106,7 @@ class TestXswap { // 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 = cublasXswap(args.n, + auto status = cublasXswap(reinterpret_cast<cublasHandle_t>(args.cublas_handle), args.n, buffers.x_vec, args.x_offset, args.x_inc, buffers.y_vec, args.y_offset, args.y_inc); if (status == CUBLAS_STATUS_SUCCESS) { return StatusCode::kSuccess; } else { return StatusCode::kUnknownError; } |