diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-30 18:45:06 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-30 18:45:06 +0100 |
commit | ad1227c4f2934b0f60c0030101e18b8fb21daf8c (patch) | |
tree | 00db3a1af9a52c93df4e9473e05fc8f636838e98 /include/clblast.h | |
parent | 6d1e30e61f5ef73f0a83e12f064cae64644034ca (diff) |
Added optional temp-buffer argument to C++ interface of GEMM
Diffstat (limited to 'include/clblast.h')
-rw-r--r-- | include/clblast.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clblast.h b/include/clblast.h index 3318768a..a05b487f 100644 --- a/include/clblast.h +++ b/include/clblast.h @@ -97,6 +97,7 @@ enum class StatusCode { kInsufficientMemoryY = -1007, // Vector Y's OpenCL buffer is too small // Custom additional status codes for CLBlast + kInsufficientMemoryTemp = -2050, // Temporary buffer provided to GEMM routine is too small kInvalidBatchCount = -2049, // The batch count needs to be positive kInvalidOverrideKernel = -2048, // Trying to override parameters for an invalid kernel kMissingOverrideParameter = -2047, // Missing override parameter(s) for the target kernel @@ -520,7 +521,8 @@ StatusCode Gemm(const Layout layout, const Transpose a_transpose, const Transpos const cl_mem b_buffer, const size_t b_offset, const size_t b_ld, const T beta, cl_mem c_buffer, const size_t c_offset, const size_t c_ld, - cl_command_queue* queue, cl_event* event = nullptr); + cl_command_queue* queue, cl_event* event = nullptr, + cl_mem temp_buffer = nullptr); // Symmetric matrix-matrix multiplication: SSYMM/DSYMM/CSYMM/ZSYMM/HSYMM template <typename T> |