11 #ifndef _CU_BASIC_ALGEBRA_CUBLAS_INTERFACE_H_
12 #define _CU_BASIC_ALGEBRA_CUBLAS_INTERFACE_H_
19 #include <cublas_v2.h>
36 template <
typename DataType>
38 cublasHandle_t handle,
39 cublasOperation_t trans,
42 const DataType* alpha,
52 template <
typename DataType>
54 cublasHandle_t handle,
int n,
61 template <
typename DataType>
63 cublasHandle_t handle,
65 const DataType *alpha,
72 template <
typename DataType>
74 cublasHandle_t handle,
83 template <
typename DataType>
85 cublasHandle_t handle,
92 template <
typename DataType>
94 cublasHandle_t handle,
96 const DataType *alpha,
A collection of templates to wrapper cublas functions.
cublasStatus_t cublasXdot(cublasHandle_t handle, int n, const DataType *x, int incx, const DataType *y, int incy, DataType *result)
cublasStatus_t cublasXscal(cublasHandle_t handle, int n, const DataType *alpha, DataType *x, int incx)
cublasStatus_t cublasXnrm2(cublasHandle_t handle, int n, const DataType *x, int incx, DataType *result)
cublasStatus_t cublasXcopy(cublasHandle_t handle, int n, const DataType *x, int incx, DataType *y, int incy)
cublasStatus_t cublasXgemv(cublasHandle_t handle, cublasOperation_t trans, int m, int n, const DataType *alpha, const DataType *A, int lda, const DataType *x, int incx, const DataType *beta, DataType *y, int incy)
cublasStatus_t cublasXaxpy(cublasHandle_t handle, int n, const DataType *alpha, const DataType *x, int incx, DataType *y, int incy)