CUBLAS Routines

Helper Routines

cublasCheckStatus Raise CUBLAS exception
cublasCreate Initialize CUBLAS.
cublasDestroy Release CUBLAS resources.
cublasGetCurrentCtx Get current CUBLAS context.
cublasGetStream Set current CUBLAS library stream.
cublasGetVersion Get CUBLAS version.
cublasSetStream Set current CUBLAS library stream.

Wrapper Routines

Single Precision BLAS1 Routines

cublasIsamax Index of maximum magnitude element.
cublasIsamin Index of minimum magnitude element (single-precision real).
cublasSasum Sum of absolute values of single-precision real vector.
cublasSaxpy Vector addition (single-precision real).
cublasScopy Vector copy (single-precision real)
cublasSdot Vector dot product (single-precision real)
cublasSnrm2 Euclidean norm (2-norm) of real vector.
cublasSrot Apply a real rotation to real vectors (single-precision)
cublasSrotg Construct a single-precision real Givens rotation matrix.
cublasSrotm Apply a single-precision real modified Givens rotation.
cublasSrotmg Construct a single-precision real modified Givens rotation matrix.
cublasSscal Scale a single-precision real vector by a single-precision real scalar.
cublasSswap Swap single-precision real vectors.
cublasCaxpy Vector addition (single-precision complex).
cublasCcopy Vector copy (single-precision complex)
cublasCdotc Vector dot product (single-precision complex)
cublasCdotu Vector dot product (single-precision complex)
cublasCrot Apply a complex rotation to complex vectors (single-precision)
cublasCrotg Construct a single-precision complex Givens rotation matrix.
cublasCscal Scale a single-precision complex vector by a single-precision complex scalar.
cublasCsrot Apply a complex rotation to complex vectors (single-precision)
cublasCsscal Scale a single-precision complex vector by a single-precision real scalar.
cublasCswap Swap single-precision complex vectors.
cublasIcamax Index of maximum magnitude element.
cublasIcamin Index of minimum magnitude element (single-precision complex).
cublasScasum Sum of absolute values of single-precision complex vector.
cublasScnrm2 Euclidean norm (2-norm) of real vector.

Double Precision BLAS1 Routines

cublasIdamax Index of maximum magnitude element.
cublasIdamin Index of minimum magnitude element (double-precision real).
cublasDasum Sum of absolute values of double-precision real vector.
cublasDaxpy Vector addition (double-precision real).
cublasDcopy Vector copy (double-precision real)
cublasDdot Vector dot product (double-precision real)
cublasDnrm2 Euclidean norm (2-norm) of real vector.
cublasDrot Apply a real rotation to real vectors (double-precision)
cublasDrotg Construct a double-precision real Givens rotation matrix.
cublasDrotm Apply a double-precision real modified Givens rotation.
cublasDrotmg Construct a double-precision real modified Givens rotation matrix.
cublasDscal Scale a double-precision real vector by a double-precision real scalar.
cublasDswap Swap double-precision real vectors.
cublasDzasum Sum of absolute values of double-precision complex vector.
cublasDznrm2 Euclidean norm (2-norm) of real vector.
cublasIzamax Index of maximum magnitude element.
cublasIzamin Index of minimum magnitude element (double-precision complex).
cublasZaxpy Vector addition (double-precision complex).
cublasZcopy Vector copy (double-precision complex)
cublasZdotc Vector dot product (double-precision complex)
cublasZdotu Vector dot product (double-precision complex)
cublasZdrot Apply a complex rotation to complex vectors (double-precision)
cublasZdscal Scale a double-precision complex vector by a double-precision real scalar.
cublasZrot Apply a complex rotation to complex vectors (double-precision)
cublasZrotg Construct a double-precision complex Givens rotation matrix.
cublasZscal Scale a double-precision complex vector by a double-precision complex scalar.
cublasZswap Swap double-precision complex vectors.

Single Precision BLAS2 Routines

cublasSgbmv Matrix-vector product for real general banded matrix.
cublasSgemv Matrix-vector product for real general matrix.
cublasSger Rank-1 operation on real general matrix.
cublasSsbmv Matrix-vector product for real symmetric-banded matrix.
cublasSspmv Matrix-vector product for real symmetric-packed matrix.
cublasSspr Rank-1 operation on real symmetric-packed matrix.
cublasSspr2 Rank-2 operation on real symmetric-packed matrix.
cublasSsymv Matrix-vector product for real symmetric matrix.
cublasSsyr Rank-1 operation on real symmetric matrix.
cublasSsyr2 Rank-2 operation on real symmetric matrix.
cublasStbmv Matrix-vector product for real triangular-banded matrix.
cublasStbsv Solve real triangular-banded system with one right-hand side.
cublasStpmv Matrix-vector product for real triangular-packed matrix.
cublasStpsv Solve real triangular-packed system with one right-hand side.
cublasStrmv Matrix-vector product for real triangular matrix.
cublasStrsv Solve real triangular system with one right-hand side.
cublasCgbmv Matrix-vector product for complex general banded matrix.
cublasCgemv Matrix-vector product for complex general matrix.
cublasCgerc Rank-1 operation on complex general matrix.
cublasCgeru Rank-1 operation on complex general matrix.
cublasChbmv Matrix-vector product for Hermitian-banded matrix.
cublasChemv Matrix vector product for Hermitian matrix.
cublasCher Rank-1 operation on Hermitian matrix.
cublasCher2 Rank-2 operation on Hermitian matrix.
cublasChpmv Matrix-vector product for Hermitian-packed matrix.
cublasChpr Rank-1 operation on Hermitian-packed matrix.
cublasChpr2 Rank-2 operation on Hermitian-packed matrix.
cublasCtbmv Matrix-vector product for complex triangular-banded matrix.
cublasCtbsv Solve complex triangular-banded system with one right-hand side.
cublasCtpmv Matrix-vector product for complex triangular-packed matrix.
cublasCtpsv Solve complex triangular-packed system with one right-hand side.
cublasCtrmv Matrix-vector product for complex triangular matrix.
cublasCtrsv Solve complex triangular system with one right-hand side.

Double Precision BLAS2 Routines

cublasDgbmv Matrix-vector product for real general banded matrix.
cublasDgemv Matrix-vector product for real general matrix.
cublasDger Rank-1 operation on real general matrix.
cublasDsbmv Matrix-vector product for real symmetric-banded matrix.
cublasDspmv Matrix-vector product for real symmetric-packed matrix.
cublasDspr Rank-1 operation on real symmetric-packed matrix.
cublasDspr2 Rank-2 operation on real symmetric-packed matrix.
cublasDsymv Matrix-vector product for real symmetric matrix.
cublasDsyr Rank-1 operation on real symmetric matrix.
cublasDsyr2 Rank-2 operation on real symmetric matrix.
cublasDtbmv Matrix-vector product for real triangular-banded matrix.
cublasDtbsv Solve real triangular-banded system with one right-hand side.
cublasDtpmv Matrix-vector product for real triangular-packed matrix.
cublasDtpsv Solve real triangular-packed system with one right-hand side.
cublasDtrmv Matrix-vector product for real triangular matrix.
cublasDtrsv Solve real triangular system with one right-hand side.
cublasZgbmv Matrix-vector product for complex general banded matrix.
cublasZgemv Matrix-vector product for complex general matrix.
cublasZgerc Rank-1 operation on complex general matrix.
cublasZgeru Rank-1 operation on complex general matrix.
cublasZhbmv Matrix-vector product for Hermitian banded matrix.
cublasZhemv Matrix-vector product for Hermitian matrix.
cublasZher Rank-1 operation on Hermitian matrix.
cublasZher2 Rank-2 operation on Hermitian matrix.
cublasZhpmv Matrix-vector product for Hermitian-packed matrix.
cublasZhpr Rank-1 operation on Hermitian-packed matrix.
cublasZhpr2 Rank-2 operation on Hermitian-packed matrix.
cublasZtbmv Matrix-vector product for complex triangular-banded matrix.
cublasZtbsv Solve complex triangular-banded system with one right-hand side.
cublasZtpmv Matrix-vector product for complex triangular-packed matrix.
cublasZtpsv Solve complex triangular-packed system with one right-hand size.
cublasZtrmv Matrix-vector product for complex triangular matrix.
cublasZtrsv Solve complex triangular system with one right-hand side.

Single Precision BLAS3 Routines

cublasSgemm Matrix-matrix product for real general matrix.
cublasSsymm Matrix-matrix product for symmetric matrix.
cublasSsyrk Rank-k operation on real symmetric matrix.
cublasSsyr2k Rank-2k operation on real symmetric matrix.
cublasStrmm Matrix-matrix product for real triangular matrix.
cublasStrsm Solve a real triangular system with multiple right-hand sides.
cublasCgemm Matrix-matrix product for complex general matrix.
cublasChemm Matrix-matrix product for complex Hermitian matrix.
cublasCherk Rank-k operation on Hermitian matrix.
cublasCher2k Rank-2k operation on Hermitian matrix.
cublasCsymm Matrix-matrix product for complex symmetric matrix.
cublasCsyrk Rank-k operation on complex symmetric matrix.
cublasCsyr2k Rank-2k operation on complex symmetric matrix.
cublasCtrmm Matrix-matrix product for complex triangular matrix.
cublasCtrsm Solve a complex triangular system with multiple right-hand sides.

Double Precision BLAS3 Routines

cublasDgemm Matrix-matrix product for real general matrix.
cublasDsymm Matrix-matrix product for real symmetric matrix.
cublasDsyrk Rank-k operation on real symmetric matrix.
cublasDsyr2k Rank-2k operation on real symmetric matrix.
cublasDtrmm Matrix-matrix product for real triangular matrix.
cublasDtrsm Solve a real triangular system with multiple right-hand sides.
cublasZgemm Matrix-matrix product for complex general matrix.
cublasZhemm Matrix-matrix product for Hermitian matrix.
cublasZherk Rank-k operation on Hermitian matrix.
cublasZher2k Rank-2k operation on Hermitian matrix.
cublasZsymm Matrix-matrix product for complex symmetric matrix.
cublasZsyrk Rank-k operation on complex symmetric matrix.
cublasZsyr2k Rank-2k operation on complex symmetric matrix.
cublasZtrmm Matrix-matrix product for complex triangular matrix.
cublasZtrsm Solve complex triangular system with multiple right-hand sides.

Single-Precision BLAS-like Extension Routines

cublasSdgmm Matrix-diagonal matrix product for real general matrix.
cublasSgeam Matrix-matrix addition/transposition (single-precision real).
cublasSgemmBatched Matrix-matrix product for arrays of real general matrices.
cublasCgemmBatched Matrix-matrix product for arrays of complex general matrices.
cublasStrsmBatched This function solves an array of triangular linear systems with multiple right-hand-sides.
cublasSgetrfBatched This function performs the LU factorization of an array of n x n matrices.
cublasCdgmm Matrix-diagonal matrix product for complex general matrix.
cublasCgeam Matrix-matrix addition/transposition (single-precision complex).

Double-Precision BLAS-like Extension Routines

cublasDdgmm Matrix-diagonal matrix product for real general matrix.
cublasDgeam Matrix-matrix addition/transposition (double-precision real).
cublasDgemmBatched Matrix-matrix product for arrays of real general matrices.
cublasZgemmBatched Matrix-matrix product for arrays of complex general matrices.
cublasDtrsmBatched This function solves an array of triangular linear systems with multiple right-hand-sides.
cublasDgetrfBatched This function performs the LU factorization of an array of n x n matrices.
cublasZdgmm Matrix-diagonal matrix product for complex general matrix.
cublasZgeam Matrix-matrix addition/transposition (double-precision complex).