Namespace ManagedCuda.CudaBlas
Classes
CudaBlas
Wrapper for CUBLAS
CudaBlasException
An CudaBlasException is thrown, if any wrapped call to the CUBLAS-library does not return Success.
CudaBlasNativeMethods
C# wrapper for cublas_v2.h and cublas_api.h
Structs
CudaBlasHandle
Opaque structure holding CUBLAS library context
Enums
AtomicsMode
The type indicates whether cuBLAS routines which has an alternate implementation using atomics can be used. The atomics mode can be set and queried using and routines, respectively.
CublasStatus
CUBLAS status type returns
DataType
The cublasDataType_t type is an enumerant to specify the data precision. It is used when the data reference does not carry the type itself (e.g void *). To mimic the typedef in cublas_api.h, we redefine the enum identically to cudaDataType
DiagType
The DiagType type indicates whether the main diagonal of the dense matrix is unity and consequently should not be touched or modified by the function. Its values correspond to Fortran characters ‘N’ or ‘n’ (non-unit) and ‘U’ or ‘u’ (unit) that are often used as parameters to legacy BLAS implementations.
FillMode
The FillMode type indicates which part (lower or upper) of the dense matrix was filled and consequently should be used by the function. Its values correspond to Fortran characters ‘L’ or ‘l’ (lower) and ‘U’ or ‘u’ (upper) that are often used as parameters to legacy BLAS implementations.
GemmAlgo
For different GEMM algorithm
Math
Enum for default math mode/tensor operation
Operation
The Operation type indicates which operation needs to be performed with the dense matrix. Its values correspond to Fortran characters ‘N’ or ‘n’ (non-transpose), ‘T’ or ‘t’ (transpose) and ‘C’ or ‘c’ (conjugate transpose) that are often used as parameters to legacy BLAS implementations
PointerMode
The PointerMode type indicates whether the scalar values are passed by reference on the host or device. It is important to point out that if several scalar values are present in the function call, all of them must conform to the same single pointer mode. The pointer mode can be set and retrieved using cublasSetPointerMode() and cublasGetPointerMode() routines, respectively.
SideMode
The SideMode type indicates whether the dense matrix is on the left or right side in the matrix equation solved by a particular function. Its values correspond to Fortran characters ‘L’ or ‘l’ (left) and ‘R’ or ‘r’ (right) that are often used as parameters to legacy BLAS implementations.