cublas Usage Notes
· One min read
This article is a work in progress.
cublasSetMatrix()
cublasStatus_t
cublasSetMatrix(int rows, int cols, int elemSize,
const void *A, int lda, void *B, int ldb)
This function copies row × col elements from the host memory matrix A to the GPU memory matrix B.
Each element is elemSize bytes, and the matrices are stored column-major, with the leading dimensions specified by lda and ldb respectively.
Reference: https://docs.nvidia.com/cuda/cublas/index.html#cublassetmatrix
