diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-04 19:31:57 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-04 19:31:57 +0100 |
commit | af14fff1e9f93daa535b673ad1391fac397b5edc (patch) | |
tree | 225f60eceb4d152fdfa33cfc232854eaed522208 /src/clblast.cpp | |
parent | a3925e506094d1ec7301704af990ccb69831df4e (diff) |
Updated the generator script to automatically generate the temp-buffer code
Diffstat (limited to 'src/clblast.cpp')
-rw-r--r-- | src/clblast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clblast.cpp b/src/clblast.cpp index 06449840..461cf31f 100644 --- a/src/clblast.cpp +++ b/src/clblast.cpp @@ -1652,11 +1652,11 @@ StatusCode Gemm(const Layout layout, const Transpose a_transpose, const Transpos const T beta, cl_mem c_buffer, const size_t c_offset, const size_t c_ld, cl_command_queue* queue, cl_event* event, - cl_mem temp_buffer) { // optional argument + cl_mem temp_buffer) { try { auto queue_cpp = Queue(*queue); auto routine = Xgemm<T>(queue_cpp, event); - auto temp_buffer_provided = temp_buffer != nullptr; + const auto temp_buffer_provided = temp_buffer != nullptr; auto temp_buffer_cpp = temp_buffer_provided ? Buffer<T>(temp_buffer) : Buffer<T>(nullptr); routine.DoGemm(layout, a_transpose, b_transpose, m, n, k, |