diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-31 20:41:02 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-31 20:41:02 +0100 |
commit | ef5008f5e46c4fe6d3728beff1d3277d02aae099 (patch) | |
tree | 3b01fe2150bd394dbf3a8b411d30de63145243f6 /include/clblast_cuda.h | |
parent | 37c5e8f58c8c6a1f8888938baa67691f8ecddaf4 (diff) |
Created the API and stubs for the HAD (hadamard-product) routines
Diffstat (limited to 'include/clblast_cuda.h')
-rw-r--r-- | include/clblast_cuda.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clblast_cuda.h b/include/clblast_cuda.h index ed348efe..d82ee331 100644 --- a/include/clblast_cuda.h +++ b/include/clblast_cuda.h @@ -582,6 +582,16 @@ StatusCode Trsm(const Layout layout, const Side side, const Triangle triangle, c // Extra non-BLAS routines (level-X) // ================================================================================================= +// Element-wise vector product (Hadamard): SHAD/DHAD/CHAD/ZHAD/HHAD +template <typename T> +StatusCode Had(const size_t n, + const T alpha, + const CUdeviceptr x_buffer, const size_t x_offset, const size_t x_inc, + const CUdeviceptr y_buffer, const size_t y_offset, const size_t y_inc, + const T beta, + CUdeviceptr z_buffer, const size_t z_offset, const size_t z_inc, + const CUcontext context, const CUdevice device); + // Scaling and out-place transpose/copy (non-BLAS function): SOMATCOPY/DOMATCOPY/COMATCOPY/ZOMATCOPY/HOMATCOPY template <typename T> StatusCode Omatcopy(const Layout layout, const Transpose a_transpose, |