The focus of Day 5 is cuBLAS Matrix Multiplication
cublas_matmul.cu
(Matrix Multiplication using cuBLAS)cublasSgemm
operation.cudaMemcpy
by utilizing cublasSetMatrix
and cublasGetMatrix
.cublasSgemm
.To compile and run the CUDA program, use:
nvcc -o cublas_matmul cublas_matmul.cu -lcublas -lcurand
./cublas_matmul