summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-01-06 13:38:44 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-01-06 13:38:44 +0100
commitad197da08da7ef414db90dbb97e92c575363c280 (patch)
tree3c218ba650511ba8525f8f3c9bc6fa3c5ec24412 /src
parente71c037304e73b85c2d67bc612a45e1e28b5a227 (diff)
Fixed the CUDA interface: replaced nullptr with 0
Diffstat (limited to 'src')
-rw-r--r--src/clblast_cuda.cpp4
-rw-r--r--src/routines/level3/xgemm.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/clblast_cuda.cpp b/src/clblast_cuda.cpp
index 21514c74..348ff3f5 100644
--- a/src/clblast_cuda.cpp
+++ b/src/clblast_cuda.cpp
@@ -1732,8 +1732,8 @@ StatusCode Gemm(const Layout layout, const Transpose a_transpose, const Transpos
const auto device_cpp = Device(device);
auto queue_cpp = Queue(context_cpp, device_cpp);
auto routine = Xgemm<T>(queue_cpp, nullptr);
- const auto temp_buffer_provided = temp_buffer != nullptr;
- auto temp_buffer_cpp = temp_buffer_provided ? Buffer<T>(temp_buffer) : Buffer<T>(nullptr);
+ const auto temp_buffer_provided = temp_buffer != 0;
+ auto temp_buffer_cpp = temp_buffer_provided ? Buffer<T>(temp_buffer) : Buffer<T>(0);
routine.DoGemm(layout, a_transpose, b_transpose,
m, n, k,
alpha,
diff --git a/src/routines/level3/xgemm.hpp b/src/routines/level3/xgemm.hpp
index b354de1b..b51d1771 100644
--- a/src/routines/level3/xgemm.hpp
+++ b/src/routines/level3/xgemm.hpp
@@ -159,7 +159,7 @@ class Xgemm: public Routine {
const Buffer<T> &b_buffer, const size_t b_offset, const size_t b_ld,
const T beta,
const Buffer<T> &c_buffer, const size_t c_offset, const size_t c_ld,
- const Buffer<T> &temp_buffer = Buffer<T>(nullptr), const bool temp_buffer_provided = false);
+ const Buffer<T> &temp_buffer = Buffer<T>(0), const bool temp_buffer_provided = false);
// Indirect version of GEMM (with pre and post-processing kernels)
void GemmIndirect(const size_t m, const size_t n, const size_t k,