diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-03-25 10:00:40 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-03-25 10:00:40 +0100 |
commit | 3876096c30ad4eed5769dbc88dbfe75b7571718a (patch) | |
tree | f902f2ee43df982152ada5d8d8d0573653cef58a /include/clblast.h | |
parent | 49822c8ead3313e88a08f31162870e88f8ad2bb5 (diff) |
Added prototypes for SNRM2/DNRM2 routines
Diffstat (limited to 'include/clblast.h')
-rw-r--r-- | include/clblast.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clblast.h b/include/clblast.h index 70a3b5bc..905de774 100644 --- a/include/clblast.h +++ b/include/clblast.h @@ -140,6 +140,13 @@ StatusCode Dotc(const size_t n, const cl_mem y_buffer, const size_t y_offset, const size_t y_inc, cl_command_queue* queue, cl_event* event); +// Euclidian norm of a vector: SNRM2/DNRM2 +template <typename T> +StatusCode Nrm2(const size_t n, + cl_mem nrm2_buffer, const size_t nrm2_offset, + const cl_mem x_buffer, const size_t x_offset, const size_t x_inc, + cl_command_queue* queue, cl_event* event); + // ================================================================================================= // BLAS level-2 (matrix-vector) routines // ================================================================================================= |