Expand description
Raw FFI bindings for cuSPARSE.
Prefer the safe singe-cusparse crate unless direct NVIDIA ABI access is required.
Structs§
- CUstream_
st - _IO_
FILE - _IO_
codecvt - _IO_
marker - _IO_
wide_ data - __
Bindgen Bitfield Unit - bsric02
Info - bsrilu02
Info - bsrsm2
Info - bsrsv2
Info - csric02
Info - csrilu02
Info - csru2csr
Info - cusparse
Color Info - cusparse
Context - cusparse
DnMat Descr - cusparse
DnVec Descr - cusparse
MatDescr - cusparse
SpGEMM Descr - cusparse
SpMM OpPlan - cusparse
SpMat Descr - cusparse
SpSM Descr - cusparse
SpSV Descr - cusparse
SpVec Descr - double2
- float2
- prune
Info
Enums§
- cusparse
Action_ t - This type indicates whether the operation is performed only on indices or on data and indices.
- cusparse
Color Alg_ t - cusparse
Csr2 CscAlg_ t - cusparse
Dense ToSparse Alg_ t - cusparse
Diag Type_ t - This type indicates if the matrix diagonal entries are unity. The diagonal elements are always assumed to be present, but if
cusparseDiagType_t::CUSPARSE_DIAG_TYPE_UNITis passed to an API routine, then the routine assumes that all diagonal entries are unity and will not read or modify those entries. Note that in this case the routine assumes the diagonal entries are equal to one, regardless of what those entries are actually set to in memory. - cusparse
Direction_ t - This type indicates whether the elements of a dense matrix should be parsed by rows or by columns (assuming column-major storage in memory of the dense matrix) in function cusparse[S|D|C|Z]nnz. Besides storage format of blocks in BSR format is also controlled by this type.
- cusparse
Fill Mode_ t - This type indicates if the lower or upper part of a matrix is stored in sparse storage.
- cusparse
Format_ t - This type indicates the format of the sparse matrix. See cuSPARSE Storage Formats for their description.
- cusparse
Index Base_ t - This type indicates if the base of the matrix indices is zero or one.
- cusparse
Index Type_ t - This type indicates the index type for representing the sparse matrix indices.
- cusparse
Matrix Type_ t - This type indicates the type of matrix stored in sparse storage. Notice that for symmetric, Hermitian and triangular matrices only their lower or upper part is assumed to be stored.
- cusparse
Operation_ t - This type indicates which operations is applied to the related input (e.g. sparse matrix, or vector).
- cusparse
Order_ t - This type indicates the memory layout of a dense matrix.
- cusparse
Pointer Mode_ t - This 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 passed by reference in the function call, all of them will conform to the same single pointer mode. The pointer mode can be set and retrieved using
cusparseSetPointerModeandcusparseGetPointerModeroutines, respectively. - cusparseSDDMM
Alg_ t - cusparse
Solve Policy_ t Deprecated - This type indicates whether level information is generated and used in
csrsv2, csric02, csrilu02, bsrsv2, bsric02 and bsrilu02. - cusparse
SpGEMM Alg_ t - cusparse
SpMM Alg_ t - cusparse
SpMM OpAlg_ t - cusparse
SpMV Alg_ t - cusparse
SpMat Attribute_ t - cusparse
SpSM Alg_ t - cusparse
SpSM Update_ t - cusparse
SpSV Alg_ t - cusparse
SpSV Update_ t - cusparse
Sparse ToDense Alg_ t - cusparse
Status_ t - This data type represents the status returned by the library functions and it can have the following values.
Constants§
Functions§
- cusparse
Axpby ⚠Deprecated - The function computes the sum of a sparse vector
vecXand a dense vectorvecY. - cusparse
Blocked ⚠EllGet - This function returns the fields of the sparse matrix descriptor
spMatDescrstored in Blocked-Ellpack (ELL) format. - cusparse
BsrSet ⚠Strided Batch - This function sets the
batchCountand thebatchStridefields of the sparse matrix descriptorspMatDescr. - cusparse
Cbsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Cbsric02 ⚠ - This function performs the solve phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting.
- cusparse
Cbsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Cbsric02_ ⚠buffer Size - This function returns the size of a buffer used in computing the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Cbsric02_ ⚠buffer Size Ext - cusparse
Cbsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Cbsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Cbsrilu02_ ⚠buffer Size - This function returns the size of the buffer used in computing the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Cbsrilu02_ ⚠buffer Size Ext - cusparse
Cbsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. Parameter
tolis used to determine a numerical zero, andboost_valis used to replace a numerical zero. The behavior is as follows: - cusparse
Cbsrmm ⚠ - This function performs one of the following matrix-matrix operations:
- cusparse
Cbsrmv ⚠ - This function performs the matrix-vector operation
- cusparse
Cbsrsm2_ ⚠analysis - This function performs the analysis phase of
bsrsm2(), a new sparse triangular linear systemop(A)*op(X) =$\alpha$op(B). - cusparse
Cbsrsm2_ ⚠buffer Size - This function returns size of buffer used in
bsrsm2(), a new sparse triangular linear systemop(A)*op(X)=$\alpha$op(B). - cusparse
Cbsrsm2_ ⚠buffer Size Ext - cusparse
Cbsrsm2_ ⚠solve - This function performs the solve phase of the solution of a sparse triangular linear system:
- cusparse
Cbsrsv2_ ⚠analysis - This function performs the analysis phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Cbsrsv2_ ⚠buffer Size - This function returns size of the buffer used in
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Cbsrsv2_ ⚠buffer Size Ext - cusparse
Cbsrsv2_ ⚠solve - This function performs the solve phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Cbsrxmv ⚠ - This function performs a
bsrmvand a mask operation - cusparse
Ccsr2bsr ⚠ - cusparse
Ccsr2csr_ ⚠compress - cusparse
Ccsr2csru ⚠ - cusparse
Ccsr2gebsr ⚠ - This function converts a sparse matrix
Ain CSR format (that is defined by arrayscsrValA,csrRowPtrA, andcsrColIndA) into a sparse matrixCin general BSR format (that is defined by the three arraysbsrValC,bsrRowPtrC, andbsrColIndC). - cusparse
Ccsr2gebsr_ ⚠buffer Size - cusparse
Ccsr2gebsr_ ⚠buffer Size Ext - cusparse
Ccsrcolor ⚠ - This function performs the coloring of the adjacency graph associated with the matrix A stored in CSR format. The coloring is an assignment of colors (integer numbers) to nodes, such that neighboring nodes have distinct colors. An approximate coloring algorithm is used in this routine, and is stopped when a certain percentage of nodes has been colored. The rest of the nodes are assigned distinct colors (an increasing sequence of integers numbers, starting from the last integer used previously). The last two auxiliary routines can be used to extract the resulting number of colors, their assignment and the associated reordering. The reordering is such that nodes that have been assigned the same color are reordered to be next to each other.
- cusparse
Ccsrgeam2 ⚠ - This function performs following matrix-matrix operation
- cusparse
Ccsrgeam2_ ⚠buffer Size Ext - cusparse
Ccsric02 ⚠ - This function performs the solve phase of the computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsric02_ ⚠buffer Size - This function returns size of buffer used in computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsric02_ ⚠buffer Size Ext - cusparse
Ccsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsrilu02_ ⚠buffer Size - This function returns size of the buffer used in computing the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Ccsrilu02_ ⚠buffer Size Ext - cusparse
Ccsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. The
tolis used to determine a numerical zero, and theboost_valis used to replace a numerical zero. The behavior is - cusparse
Ccsru2csr ⚠ - cusparse
Ccsru2csr_ ⚠buffer Size Ext - cusparse
Cgebsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Cgebsr2gebsc ⚠ - This function can be seen as the same as
csr2csc()when each block of sizerowBlockDim*colBlockDimis regarded as a scalar. - cusparse
Cgebsr2gebsc_ ⚠buffer Size - cusparse
Cgebsr2gebsc_ ⚠buffer Size Ext - cusparse
Cgebsr2gebsr ⚠ - This function converts a sparse matrix in general BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndAinto a sparse matrix in another general BSR format that is defined by arraysbsrValC,bsrRowPtrC, andbsrColIndC. - cusparse
Cgebsr2gebsr_ ⚠buffer Size - cusparse
Cgebsr2gebsr_ ⚠buffer Size Ext - cusparse
Cgemvi ⚠ - This function performs the matrix-vector operation
- cusparse
Cgemvi_ ⚠buffer Size - cusparse
Cgpsv ⚠Interleaved Batch - This function computes the solution of multiple penta-diagonal linear systems for i=0,…,
batchCount: - cusparse
Cgpsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Cgtsv2 ⚠ - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Cgtsv2 ⚠Strided Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Cgtsv2 ⚠Strided Batch_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2StridedBatchwhich computes the solution of multiple tridiagonal linear systems for i=0,…,batchCount: - cusparse
Cgtsv2_ ⚠buffer Size Ext - cusparse
Cgtsv2_ ⚠nopivot - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Cgtsv2_ ⚠nopivot_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2_nopivotwhich computes the solution of a tridiagonal linear system with multiple right-hand sides. - cusparse
Cgtsv ⚠Interleaved Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Cgtsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Cnnz ⚠ - This function computes the number of nonzero elements per row or column and the total number of nonzero elements in a dense matrix.
- cusparse
Cnnz_ ⚠compress - This function is the step one to convert from csr format to compressed csr format.
- cusparse
Const ⚠Blocked EllGet - cusparse
Const ⚠CooGet - cusparse
Const ⚠CscGet - cusparse
Const ⚠CsrGet - cusparse
Const ⚠DnMat Get - cusparse
Const ⚠DnMat GetValues - cusparse
Const ⚠DnVec Get - cusparse
Const ⚠DnVec GetValues - cusparse
Const ⚠SpMat GetValues - cusparse
Const ⚠SpVec Get - cusparse
Const ⚠SpVec GetValues - cusparse
CooGet ⚠ - This function returns the fields of the sparse matrix descriptor
spMatDescrstored in COO format (Array of Structures layout). - cusparse
CooSet ⚠Pointers - This function sets the pointers of the sparse matrix descriptor
spMatDescr. - cusparse
CooSet ⚠Strided Batch - This function sets the
batchCountand thebatchStridefields of the sparse matrix descriptorspMatDescr. - cusparse
Create ⚠ - This function initializes the cuSPARSE library and creates a handle on the cuSPARSE context. It must be called before any other cuSPARSE API function is invoked. It allocates hardware resources necessary for accessing the GPU.
- cusparse
Create ⚠Blocked Ell - This function initializes the sparse matrix descriptor
spMatDescrfor the Blocked-Ellpack (ELL) format. - cusparse
Create ⚠Bsr - This function initializes the sparse matrix descriptor
spMatDescrfor the Block Compressed Row (BSR) format. - cusparse
Create ⚠Bsric02 Info Deprecated - This function creates and initializes the solve and analysis structure of block incomplete Cholesky to
defaultvalues. - cusparse
Create ⚠Bsrilu02 Info Deprecated - This function creates and initializes the solve and analysis structure of block incomplete LU to
defaultvalues. - cusparse
Create ⚠Bsrsm2 Info Deprecated - This function creates and initializes the solve and analysis structure of bsrsm2 to
defaultvalues. - cusparse
Create ⚠Bsrsv2 Info Deprecated - This function creates and initializes the solve and analysis structure of bsrsv2 to
defaultvalues. - cusparse
Create ⚠Color Info Deprecated - This function creates and initializes the
cusparseColorInfo_tstructure todefaultvalues. - cusparse
Create ⚠Const Blocked Ell - cusparse
Create ⚠Const Bsr - cusparse
Create ⚠Const Coo - cusparse
Create ⚠Const Csc - cusparse
Create ⚠Const Csr - cusparse
Create ⚠Const DnMat - cusparse
Create ⚠Const DnVec - cusparse
Create ⚠Const Sliced Ell - cusparse
Create ⚠Const SpVec - cusparse
Create ⚠Coo - This function initializes the sparse matrix descriptor
spMatDescrin the COO format (Structure of Arrays layout). - cusparse
Create ⚠Csc - This function initializes the sparse matrix descriptor
spMatDescrin the CSC format. - cusparse
Create ⚠Csr - This function initializes the sparse matrix descriptor
spMatDescrin the CSR format. - cusparse
Create ⚠Csric02 Info Deprecated - This function creates and initializes the solve and analysis structure of incomplete Cholesky to
defaultvalues. - cusparse
Create ⚠Csrilu02 Info Deprecated - This function creates and initializes the solve and analysis structure of incomplete LU to
defaultvalues. - cusparse
Create ⚠Csru2csr Info - cusparse
Create ⚠DnMat - The function initializes the dense matrix descriptor
dnMatDescr. - cusparse
Create ⚠DnVec - This function initializes the dense vector descriptor
dnVecDescr. - cusparse
Create ⚠Identity Permutation Deprecated - This function creates an identity map. The output parameter
prepresents such map byp = 0:1:(n-1). - cusparse
Create ⚠MatDescr - This function initializes the matrix descriptor. It sets the fields
MatrixTypeandIndexBaseto thedefaultvaluescusparseMatrixType_t::CUSPARSE_MATRIX_TYPE_GENERALandcusparseIndexBase_t::CUSPARSE_INDEX_BASE_ZERO, respectively, while leaving other fields uninitialized. - cusparse
Create ⚠Prune Info Deprecated - This function creates and initializes structure of
prunetodefaultvalues. - cusparse
Create ⚠Sliced Ell - This function initializes the sparse matrix descriptor
spMatDescrfor the Sliced Ellpack (SELL) format. - cusparse
Create ⚠SpVec - This function initializes the sparse matrix descriptor
spVecDescr. - cusparse
CscGet ⚠ - This function returns the fields of the sparse matrix descriptor
spMatDescrstored in CSC format. - cusparse
CscSet ⚠Pointers - This function sets the pointers of the sparse matrix descriptor
spMatDescr. - cusparse
Csr2csc ⚠Ex2 - This function converts a sparse matrix in CSR format (that is defined by the three arrays
csrVal,csrRowPtr, andcsrColInd) into a sparse matrix in CSC format (that is defined by arrayscscVal,cscRowInd, andcscColPtr). The resulting matrix can also be seen as the transpose of the original sparse matrix. Notice that this routine can also be used to convert a matrix in CSC format into a matrix in CSR format. - cusparse
Csr2csc ⚠Ex2_ buffer Size - cusparse
CsrGet ⚠ - This function returns the fields of the sparse matrix descriptor
spMatDescrstored in CSR format. - cusparse
CsrSet ⚠Pointers - This function sets the pointers of the sparse matrix descriptor
spMatDescr. - cusparse
CsrSet ⚠Strided Batch - This function sets the
batchCountand thebatchStridefields of the sparse matrix descriptorspMatDescr. - cusparse
Dbsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Dbsric02 ⚠ - This function performs the solve phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting.
- cusparse
Dbsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Dbsric02_ ⚠buffer Size - This function returns the size of a buffer used in computing the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Dbsric02_ ⚠buffer Size Ext - cusparse
Dbsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Dbsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Dbsrilu02_ ⚠buffer Size - This function returns the size of the buffer used in computing the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Dbsrilu02_ ⚠buffer Size Ext - cusparse
Dbsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. Parameter
tolis used to determine a numerical zero, andboost_valis used to replace a numerical zero. The behavior is as follows: - cusparse
Dbsrmm ⚠ - This function performs one of the following matrix-matrix operations:
- cusparse
Dbsrmv ⚠ - This function performs the matrix-vector operation
- cusparse
Dbsrsm2_ ⚠analysis - This function performs the analysis phase of
bsrsm2(), a new sparse triangular linear systemop(A)*op(X) =$\alpha$op(B). - cusparse
Dbsrsm2_ ⚠buffer Size - This function returns size of buffer used in
bsrsm2(), a new sparse triangular linear systemop(A)*op(X)=$\alpha$op(B). - cusparse
Dbsrsm2_ ⚠buffer Size Ext - cusparse
Dbsrsm2_ ⚠solve - This function performs the solve phase of the solution of a sparse triangular linear system:
- cusparse
Dbsrsv2_ ⚠analysis - This function performs the analysis phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Dbsrsv2_ ⚠buffer Size - This function returns size of the buffer used in
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Dbsrsv2_ ⚠buffer Size Ext - cusparse
Dbsrsv2_ ⚠solve - This function performs the solve phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Dbsrxmv ⚠ - This function performs a
bsrmvand a mask operation - cusparse
Dcsr2bsr ⚠ - cusparse
Dcsr2csr_ ⚠compress - cusparse
Dcsr2csru ⚠ - cusparse
Dcsr2gebsr ⚠ - This function converts a sparse matrix
Ain CSR format (that is defined by arrayscsrValA,csrRowPtrA, andcsrColIndA) into a sparse matrixCin general BSR format (that is defined by the three arraysbsrValC,bsrRowPtrC, andbsrColIndC). - cusparse
Dcsr2gebsr_ ⚠buffer Size - cusparse
Dcsr2gebsr_ ⚠buffer Size Ext - cusparse
Dcsrcolor ⚠ - This function performs the coloring of the adjacency graph associated with the matrix A stored in CSR format. The coloring is an assignment of colors (integer numbers) to nodes, such that neighboring nodes have distinct colors. An approximate coloring algorithm is used in this routine, and is stopped when a certain percentage of nodes has been colored. The rest of the nodes are assigned distinct colors (an increasing sequence of integers numbers, starting from the last integer used previously). The last two auxiliary routines can be used to extract the resulting number of colors, their assignment and the associated reordering. The reordering is such that nodes that have been assigned the same color are reordered to be next to each other.
- cusparse
Dcsrgeam2 ⚠ - This function performs following matrix-matrix operation
- cusparse
Dcsrgeam2_ ⚠buffer Size Ext - cusparse
Dcsric02 ⚠ - This function performs the solve phase of the computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsric02_ ⚠buffer Size - This function returns size of buffer used in computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsric02_ ⚠buffer Size Ext - cusparse
Dcsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsrilu02_ ⚠buffer Size - This function returns size of the buffer used in computing the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Dcsrilu02_ ⚠buffer Size Ext - cusparse
Dcsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. The
tolis used to determine a numerical zero, and theboost_valis used to replace a numerical zero. The behavior is - cusparse
Dcsru2csr ⚠ - cusparse
Dcsru2csr_ ⚠buffer Size Ext - cusparse
Dense ⚠ToSparse_ analysis - cusparse
Dense ⚠ToSparse_ buffer Size - cusparse
Dense ⚠ToSparse_ convert - cusparse
Destroy ⚠ - This function releases CPU-side resources used by the cuSPARSE library. The release of GPU-side resources may be deferred until the application shuts down.
- cusparse
Destroy ⚠Bsric02 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Bsrilu02 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Bsrsm2 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Bsrsv2 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Color Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Csric02 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Csrilu02 Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠Csru2csr Info - cusparse
Destroy ⚠DnMat - This function releases the host memory allocated for the dense matrix descriptor
dnMatDescr. - cusparse
Destroy ⚠DnVec - This function releases the host memory allocated for the dense vector descriptor
dnVecDescr. - cusparse
Destroy ⚠MatDescr - This function releases the memory allocated for the matrix descriptor.
- cusparse
Destroy ⚠Prune Info Deprecated - This function destroys and releases any memory required by the structure.
- cusparse
Destroy ⚠SpMat - This function releases the host memory allocated for the sparse matrix descriptor
spMatDescr. - cusparse
Destroy ⚠SpVec - This function releases the host memory allocated for the sparse vector descriptor
spVecDescr. - cusparse
Dgebsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Dgebsr2gebsc ⚠ - This function can be seen as the same as
csr2csc()when each block of sizerowBlockDim*colBlockDimis regarded as a scalar. - cusparse
Dgebsr2gebsc_ ⚠buffer Size - cusparse
Dgebsr2gebsc_ ⚠buffer Size Ext - cusparse
Dgebsr2gebsr ⚠ - This function converts a sparse matrix in general BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndAinto a sparse matrix in another general BSR format that is defined by arraysbsrValC,bsrRowPtrC, andbsrColIndC. - cusparse
Dgebsr2gebsr_ ⚠buffer Size - cusparse
Dgebsr2gebsr_ ⚠buffer Size Ext - cusparse
Dgemvi ⚠ - This function performs the matrix-vector operation
- cusparse
Dgemvi_ ⚠buffer Size - cusparse
Dgpsv ⚠Interleaved Batch - This function computes the solution of multiple penta-diagonal linear systems for i=0,…,
batchCount: - cusparse
Dgpsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Dgtsv2 ⚠ - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Dgtsv2 ⚠Strided Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Dgtsv2 ⚠Strided Batch_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2StridedBatchwhich computes the solution of multiple tridiagonal linear systems for i=0,…,batchCount: - cusparse
Dgtsv2_ ⚠buffer Size Ext - cusparse
Dgtsv2_ ⚠nopivot - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Dgtsv2_ ⚠nopivot_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2_nopivotwhich computes the solution of a tridiagonal linear system with multiple right-hand sides. - cusparse
Dgtsv ⚠Interleaved Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Dgtsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
DnMat ⚠Get - This function returns the fields of the dense matrix descriptor
dnMatDescr. - cusparse
DnMat ⚠GetStrided Batch - The function returns the number of batches and the batch stride of the dense matrix descriptor
dnMatDescr. - cusparse
DnMat ⚠GetValues - This function returns the
valuesfield of the dense matrix descriptordnMatDescr. - cusparse
DnMat ⚠SetStrided Batch - The function sets the number of batches and the batch stride of the dense matrix descriptor
dnMatDescr. - cusparse
DnMat ⚠SetValues - This function sets the
valuesfield of the dense matrix descriptordnMatDescr. - cusparse
DnVec ⚠Get - This function returns the fields of the dense vector descriptor
dnVecDescr. - cusparse
DnVec ⚠GetValues - This function returns the
valuesfield of the dense vector descriptordnVecDescr. - cusparse
DnVec ⚠SetValues - This function sets the
valuesfield of the dense vector descriptordnVecDescr. - cusparse
Dnnz ⚠ - This function computes the number of nonzero elements per row or column and the total number of nonzero elements in a dense matrix.
- cusparse
Dnnz_ ⚠compress - This function is the step one to convert from csr format to compressed csr format.
- cusparse
Dprune ⚠Csr2csr - cusparse
Dprune ⚠Csr2csr ByPercentage - cusparse
Dprune ⚠Csr2csr ByPercentage_ buffer Size Ext - cusparse
Dprune ⚠Csr2csr Nnz - cusparse
Dprune ⚠Csr2csr NnzBy Percentage - cusparse
Dprune ⚠Csr2csr_ buffer Size Ext - cusparse
Dprune ⚠Dense2csr - cusparse
Dprune ⚠Dense2csr ByPercentage - cusparse
Dprune ⚠Dense2csr ByPercentage_ buffer Size Ext - cusparse
Dprune ⚠Dense2csr Nnz - cusparse
Dprune ⚠Dense2csr NnzBy Percentage - cusparse
Dprune ⚠Dense2csr_ buffer Size Ext - cusparse
Gather ⚠ - The function gathers the elements of the dense vector
vecYinto the sparse vectorvecX - cusparse
GetError ⚠Name - The function returns the string representation of an error code enum name. If the error code is not recognized, “unrecognized error code” is returned.
- cusparse
GetError ⚠String - Parameters
- cusparse
GetMat ⚠Diag Type - This function returns the
DiagTypefield of the matrix descriptordescrA. - cusparse
GetMat ⚠Fill Mode - This function returns the
FillModefield of the matrix descriptordescrA. - cusparse
GetMat ⚠Index Base - This function returns the
IndexBasefield of the matrix descriptordescrA. - cusparse
GetMat ⚠Type - This function returns the
MatrixTypefield of the matrix descriptordescrA. - cusparse
GetPointer ⚠Mode - This function obtains the pointer mode used by the cuSPARSE library. Please see the section on the
cusparsePointerMode_ttype for more details. - cusparse
GetProperty ⚠ - The function returns the value of the requested property. Refer to
libraryPropertyTypefor supported types. - cusparse
GetStream ⚠ - This function gets the cuSPARSE library stream, which is being used to to execute all calls to the cuSPARSE library functions. If the cuSPARSE library stream is not set, all kernels use the default NULL stream.
- cusparse
GetVersion ⚠ - This function returns the version number of the cuSPARSE library.
- cusparse
Logger ⚠Force Disable - cusparse
Logger ⚠Open File Experimental: The function opens a logging output file in the given path.- cusparse
Logger ⚠SetCallback Experimental: The function sets the logging callback function.- cusparse
Logger ⚠SetFile Experimental: The function sets the logging output file. Note: once registered using this function call, the provided file handle must not be closed unless the function is called again to switch to a different file handle.- cusparse
Logger ⚠SetLevel Experimental: The function sets the value of the logging level. path.- cusparse
Logger ⚠SetMask Experimental: The function sets the value of the logging mask.- cusparse
Rot ⚠Deprecated - The function computes the Givens rotation matrix
- cusparseSDDMM⚠
- This function performs the multiplication of
matAandmatB, followed by an element-wise multiplication with the sparsity pattern ofmatC. Formally, it performs the following operation: - cusparseSDDMM_
buffer ⚠Size - cusparseSDDMM_
preprocess ⚠ - cusparse
Sbsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Sbsric02 ⚠ - This function performs the solve phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting.
- cusparse
Sbsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Sbsric02_ ⚠buffer Size - This function returns the size of a buffer used in computing the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Sbsric02_ ⚠buffer Size Ext - cusparse
Sbsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Sbsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Sbsrilu02_ ⚠buffer Size - This function returns the size of the buffer used in computing the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Sbsrilu02_ ⚠buffer Size Ext - cusparse
Sbsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. Parameter
tolis used to determine a numerical zero, andboost_valis used to replace a numerical zero. The behavior is as follows: - cusparse
Sbsrmm ⚠ - This function performs one of the following matrix-matrix operations:
- cusparse
Sbsrmv ⚠ - This function performs the matrix-vector operation
- cusparse
Sbsrsm2_ ⚠analysis - This function performs the analysis phase of
bsrsm2(), a new sparse triangular linear systemop(A)*op(X) =$\alpha$op(B). - cusparse
Sbsrsm2_ ⚠buffer Size - This function returns size of buffer used in
bsrsm2(), a new sparse triangular linear systemop(A)*op(X)=$\alpha$op(B). - cusparse
Sbsrsm2_ ⚠buffer Size Ext - cusparse
Sbsrsm2_ ⚠solve - This function performs the solve phase of the solution of a sparse triangular linear system:
- cusparse
Sbsrsv2_ ⚠analysis - This function performs the analysis phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Sbsrsv2_ ⚠buffer Size - This function returns size of the buffer used in
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Sbsrsv2_ ⚠buffer Size Ext - cusparse
Sbsrsv2_ ⚠solve - This function performs the solve phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Sbsrxmv ⚠ - This function performs a
bsrmvand a mask operation - cusparse
Scatter ⚠ - The function scatters the elements of the sparse vector
vecXinto the dense vectorvecY - cusparse
Scsr2bsr ⚠ - cusparse
Scsr2csr_ ⚠compress - cusparse
Scsr2csru ⚠ - cusparse
Scsr2gebsr ⚠ - This function converts a sparse matrix
Ain CSR format (that is defined by arrayscsrValA,csrRowPtrA, andcsrColIndA) into a sparse matrixCin general BSR format (that is defined by the three arraysbsrValC,bsrRowPtrC, andbsrColIndC). - cusparse
Scsr2gebsr_ ⚠buffer Size - cusparse
Scsr2gebsr_ ⚠buffer Size Ext - cusparse
Scsrcolor ⚠ - This function performs the coloring of the adjacency graph associated with the matrix A stored in CSR format. The coloring is an assignment of colors (integer numbers) to nodes, such that neighboring nodes have distinct colors. An approximate coloring algorithm is used in this routine, and is stopped when a certain percentage of nodes has been colored. The rest of the nodes are assigned distinct colors (an increasing sequence of integers numbers, starting from the last integer used previously). The last two auxiliary routines can be used to extract the resulting number of colors, their assignment and the associated reordering. The reordering is such that nodes that have been assigned the same color are reordered to be next to each other.
- cusparse
Scsrgeam2 ⚠ - This function performs following matrix-matrix operation
- cusparse
Scsrgeam2_ ⚠buffer Size Ext - cusparse
Scsric02 ⚠ - This function performs the solve phase of the computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Scsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Scsric02_ ⚠buffer Size - This function returns size of buffer used in computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Scsric02_ ⚠buffer Size Ext - cusparse
Scsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Scsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Scsrilu02_ ⚠buffer Size - This function returns size of the buffer used in computing the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Scsrilu02_ ⚠buffer Size Ext - cusparse
Scsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. The
tolis used to determine a numerical zero, and theboost_valis used to replace a numerical zero. The behavior is - cusparse
Scsru2csr ⚠ - cusparse
Scsru2csr_ ⚠buffer Size Ext - cusparse
SetMat ⚠Diag Type - This function sets the
DiagTypefield of the matrix descriptordescrA. - cusparse
SetMat ⚠Fill Mode - This function sets the
FillModefield of the matrix descriptordescrA. - cusparse
SetMat ⚠Index Base - This function sets the
IndexBasefield of the matrix descriptordescrA. - cusparse
SetMat ⚠Type - This function sets the
MatrixTypefield of the matrix descriptordescrA. - cusparse
SetPointer ⚠Mode - This function sets the pointer mode used by the cuSPARSE library. The
defaultis for the values to be passed by reference on the host. Please see the section on thecublasPointerMode_ttype for more details. - cusparse
SetStream ⚠ - This function sets the stream to be used by the cuSPARSE library to execute its routines.
- cusparse
Sgebsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Sgebsr2gebsc ⚠ - This function can be seen as the same as
csr2csc()when each block of sizerowBlockDim*colBlockDimis regarded as a scalar. - cusparse
Sgebsr2gebsc_ ⚠buffer Size - cusparse
Sgebsr2gebsc_ ⚠buffer Size Ext - cusparse
Sgebsr2gebsr ⚠ - This function converts a sparse matrix in general BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndAinto a sparse matrix in another general BSR format that is defined by arraysbsrValC,bsrRowPtrC, andbsrColIndC. - cusparse
Sgebsr2gebsr_ ⚠buffer Size - cusparse
Sgebsr2gebsr_ ⚠buffer Size Ext - cusparse
Sgemvi ⚠ - This function performs the matrix-vector operation
- cusparse
Sgemvi_ ⚠buffer Size - cusparse
Sgpsv ⚠Interleaved Batch - This function computes the solution of multiple penta-diagonal linear systems for i=0,…,
batchCount: - cusparse
Sgpsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Sgtsv2 ⚠ - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Sgtsv2 ⚠Strided Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Sgtsv2 ⚠Strided Batch_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2StridedBatchwhich computes the solution of multiple tridiagonal linear systems for i=0,…,batchCount: - cusparse
Sgtsv2_ ⚠buffer Size Ext - cusparse
Sgtsv2_ ⚠nopivot - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Sgtsv2_ ⚠nopivot_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2_nopivotwhich computes the solution of a tridiagonal linear system with multiple right-hand sides. - cusparse
Sgtsv ⚠Interleaved Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Sgtsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Snnz ⚠ - This function computes the number of nonzero elements per row or column and the total number of nonzero elements in a dense matrix.
- cusparse
Snnz_ ⚠compress - This function is the step one to convert from csr format to compressed csr format.
- cusparse
SpGEMM_ ⚠compute - cusparse
SpGEMM_ ⚠copy - cusparse
SpGEMM_ ⚠create Descr - cusparse
SpGEMM_ ⚠destroy Descr - cusparse
SpGEMM_ ⚠estimate Memory - cusparse
SpGEMM_ ⚠getNum Products - cusparse
SpGEMM_ ⚠work Estimation - cusparse
SpGEM ⚠Mreuse_ compute - cusparse
SpGEM ⚠Mreuse_ copy - cusparse
SpGEM ⚠Mreuse_ nnz - This function computes the number of nonzero elements per row or column and the total number of nonzero elements in a dense matrix.
- cusparse
SpGEM ⚠Mreuse_ work Estimation - cusparse
SpMM ⚠ - The function performs the multiplication of a sparse matrix
matAand a dense matrixmatB. - cusparse
SpMM ⚠Op - NOTE 1: NVRTC and nvJitLink are not currently available on Arm64 Android platforms.
- cusparse
SpMM ⚠Op_ create Plan - cusparse
SpMM ⚠Op_ destroy Plan - cusparse
SpMM_ ⚠buffer Size - cusparse
SpMM_ ⚠preprocess - cusparse
SpMV ⚠ - This function performs the multiplication of a sparse matrix
matAand a dense vectorvecX - cusparse
SpMV_ ⚠buffer Size - cusparse
SpMV_ ⚠preprocess - cusparse
SpMat ⚠GetAttribute - The function gets the attributes of the sparse matrix descriptor
spMatDescr. - cusparse
SpMat ⚠GetFormat - This function returns the
formatfield of the sparse matrix descriptorspMatDescr. - cusparse
SpMat ⚠GetIndex Base - This function returns the
idxBasefield of the sparse matrix descriptorspMatDescr. - cusparse
SpMat ⚠GetSize - This function returns the sizes of the sparse matrix
spMatDescr. - cusparse
SpMat ⚠GetStrided Batch - This function returns the
batchCountfield of the sparse matrix descriptorspMatDescr. - cusparse
SpMat ⚠GetValues - This function returns the
valuesfield of the sparse matrix descriptorspMatDescr. - cusparse
SpMat ⚠SetAttribute - The function sets the attributes of the sparse matrix descriptor
spMatDescr - cusparse
SpMat ⚠SetValues - This function sets the
valuesfield of the sparse matrix descriptorspMatDescr. - cusparse
SpSM_ ⚠analysis - cusparse
SpSM_ ⚠buffer Size - cusparse
SpSM_ ⚠create Descr - cusparse
SpSM_ ⚠destroy Descr - cusparse
SpSM_ ⚠solve - cusparse
SpSM_ ⚠update Matrix - cusparse
SpSV_ ⚠analysis - cusparse
SpSV_ ⚠buffer Size - cusparse
SpSV_ ⚠create Descr - cusparse
SpSV_ ⚠destroy Descr - cusparse
SpSV_ ⚠solve - cusparse
SpSV_ ⚠update Matrix - cusparse
SpVV ⚠Deprecated - The function computes the inner dot product of a sparse vector
vecXand a dense vectorvecY - cusparse
SpVV_ ⚠buffer Size - cusparse
SpVec ⚠Get - This function returns the fields of the sparse vector descriptor
spVecDescr. - cusparse
SpVec ⚠GetIndex Base - This function returns the
idxBasefield of the sparse vector descriptorspVecDescr. - cusparse
SpVec ⚠GetValues - This function returns the
valuesfield of the sparse vector descriptorspVecDescr. - cusparse
SpVec ⚠SetValues - This function sets the
valuesfield of the sparse vector descriptorspVecDescr. - cusparse
Sparse ⚠ToDense - The function converts the sparse matrix
matAin CSR, CSC, or COO format into its dense representationmatB. Blocked-ELL is not currently supported. - cusparse
Sparse ⚠ToDense_ buffer Size - cusparse
Sprune ⚠Csr2csr - cusparse
Sprune ⚠Csr2csr ByPercentage - cusparse
Sprune ⚠Csr2csr ByPercentage_ buffer Size Ext - cusparse
Sprune ⚠Csr2csr Nnz - cusparse
Sprune ⚠Csr2csr NnzBy Percentage - cusparse
Sprune ⚠Csr2csr_ buffer Size Ext - cusparse
Sprune ⚠Dense2csr - cusparse
Sprune ⚠Dense2csr ByPercentage - cusparse
Sprune ⚠Dense2csr ByPercentage_ buffer Size Ext - cusparse
Sprune ⚠Dense2csr Nnz - cusparse
Sprune ⚠Dense2csr NnzBy Percentage - cusparse
Sprune ⚠Dense2csr_ buffer Size Ext - cusparse
Xbsric02_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)has either a structural zero or a numerical zero (the block is not positive definite). Otherwiseposition=-1. - cusparse
Xbsrilu02_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)has either a structural zero or a numerical zero (the block is not invertible). Otherwiseposition=-1. - cusparse
Xbsrsm2_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)is either a structural zero or a numerical zero (singular block). Otherwiseposition=-1. - cusparse
Xbsrsv2_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)is either structural zero or numerical zero (singular block). Otherwiseposition=-1. - cusparse
Xcoo2csr ⚠ - This function converts the array containing the uncompressed row indices (corresponding to COO format) into an array of compressed row pointers (corresponding to CSR format).
- cusparse
Xcoosort ⚠ByColumn - cusparse
Xcoosort ⚠ByRow - cusparse
Xcoosort_ ⚠buffer Size Ext - cusparse
Xcscsort ⚠ - This function sorts CSC format. The stable sorting is in-place.
- cusparse
Xcscsort_ ⚠buffer Size Ext - cusparse
Xcsr2bsr ⚠Nnz - cusparse
Xcsr2coo ⚠ - This function converts the array containing the compressed row pointers (corresponding to CSR format) into an array of uncompressed row indices (corresponding to COO format).
- cusparse
Xcsr2gebsr ⚠Nnz - cusparse
Xcsrgeam2 ⚠Nnz - cusparse
Xcsric02_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)has either a structural zero or a numerical zero; otherwise,position=-1. - cusparse
Xcsrilu02_ ⚠zero Pivot Deprecated - If the returned error code is
cusparseStatus_t::CUSPARSE_STATUS_ZERO_PIVOT,position=jmeansA(j,j)has either a structural zero or a numerical zero; otherwise,position=-1. - cusparse
Xcsrsort ⚠ - This function sorts CSR format. The stable sorting is in-place.
- cusparse
Xcsrsort_ ⚠buffer Size Ext - cusparse
Xgebsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Xgebsr2gebsr ⚠Nnz - cusparse
Zbsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Zbsric02 ⚠ - This function performs the solve phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting.
- cusparse
Zbsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Zbsric02_ ⚠buffer Size - This function returns the size of a buffer used in computing the incomplete-Cholesky factorization with 0 fill-in and no pivoting
- cusparse
Zbsric02_ ⚠buffer Size Ext - cusparse
Zbsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Zbsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Zbsrilu02_ ⚠buffer Size - This function returns the size of the buffer used in computing the incomplete-LU factorization with 0 fill-in and no pivoting.
- cusparse
Zbsrilu02_ ⚠buffer Size Ext - cusparse
Zbsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. Parameter
tolis used to determine a numerical zero, andboost_valis used to replace a numerical zero. The behavior is as follows: - cusparse
Zbsrmm ⚠ - This function performs one of the following matrix-matrix operations:
- cusparse
Zbsrmv ⚠ - This function performs the matrix-vector operation
- cusparse
Zbsrsm2_ ⚠analysis - This function performs the analysis phase of
bsrsm2(), a new sparse triangular linear systemop(A)*op(X) =$\alpha$op(B). - cusparse
Zbsrsm2_ ⚠buffer Size - This function returns size of buffer used in
bsrsm2(), a new sparse triangular linear systemop(A)*op(X)=$\alpha$op(B). - cusparse
Zbsrsm2_ ⚠buffer Size Ext - cusparse
Zbsrsm2_ ⚠solve - This function performs the solve phase of the solution of a sparse triangular linear system:
- cusparse
Zbsrsv2_ ⚠analysis - This function performs the analysis phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Zbsrsv2_ ⚠buffer Size - This function returns size of the buffer used in
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Zbsrsv2_ ⚠buffer Size Ext - cusparse
Zbsrsv2_ ⚠solve - This function performs the solve phase of
bsrsv2, a new sparse triangular linear systemop(A)*y =$\alpha$x. - cusparse
Zbsrxmv ⚠ - This function performs a
bsrmvand a mask operation - cusparse
Zcsr2bsr ⚠ - cusparse
Zcsr2csr_ ⚠compress - cusparse
Zcsr2csru ⚠ - cusparse
Zcsr2gebsr ⚠ - This function converts a sparse matrix
Ain CSR format (that is defined by arrayscsrValA,csrRowPtrA, andcsrColIndA) into a sparse matrixCin general BSR format (that is defined by the three arraysbsrValC,bsrRowPtrC, andbsrColIndC). - cusparse
Zcsr2gebsr_ ⚠buffer Size - cusparse
Zcsr2gebsr_ ⚠buffer Size Ext - cusparse
Zcsrcolor ⚠ - This function performs the coloring of the adjacency graph associated with the matrix A stored in CSR format. The coloring is an assignment of colors (integer numbers) to nodes, such that neighboring nodes have distinct colors. An approximate coloring algorithm is used in this routine, and is stopped when a certain percentage of nodes has been colored. The rest of the nodes are assigned distinct colors (an increasing sequence of integers numbers, starting from the last integer used previously). The last two auxiliary routines can be used to extract the resulting number of colors, their assignment and the associated reordering. The reordering is such that nodes that have been assigned the same color are reordered to be next to each other.
- cusparse
Zcsrgeam2 ⚠ - This function performs following matrix-matrix operation
- cusparse
Zcsrgeam2_ ⚠buffer Size Ext - cusparse
Zcsric02 ⚠ - This function performs the solve phase of the computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsric02_ ⚠analysis - This function performs the analysis phase of the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsric02_ ⚠buffer Size - This function returns size of buffer used in computing the incomplete-Cholesky factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsric02_ ⚠buffer Size Ext - cusparse
Zcsrilu02 ⚠ - This function performs the solve phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsrilu02_ ⚠analysis - This function performs the analysis phase of the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsrilu02_ ⚠buffer Size - This function returns size of the buffer used in computing the incomplete-LU factorization with $0$ fill-in and no pivoting:
- cusparse
Zcsrilu02_ ⚠buffer Size Ext - cusparse
Zcsrilu02_ ⚠numeric Boost - The user can use a boost value to replace a numerical value in incomplete LU factorization. The
tolis used to determine a numerical zero, and theboost_valis used to replace a numerical zero. The behavior is - cusparse
Zcsru2csr ⚠ - cusparse
Zcsru2csr_ ⚠buffer Size Ext - cusparse
Zgebsr2csr ⚠ - This function converts a sparse matrix in BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndA) into a sparse matrix in CSR format that is defined by arrayscsrValC,csrRowPtrC, andcsrColIndC. - cusparse
Zgebsr2gebsc ⚠ - This function can be seen as the same as
csr2csc()when each block of sizerowBlockDim*colBlockDimis regarded as a scalar. - cusparse
Zgebsr2gebsc_ ⚠buffer Size - cusparse
Zgebsr2gebsc_ ⚠buffer Size Ext - cusparse
Zgebsr2gebsr ⚠ - This function converts a sparse matrix in general BSR format that is defined by the three arrays
bsrValA,bsrRowPtrA, andbsrColIndAinto a sparse matrix in another general BSR format that is defined by arraysbsrValC,bsrRowPtrC, andbsrColIndC. - cusparse
Zgebsr2gebsr_ ⚠buffer Size - cusparse
Zgebsr2gebsr_ ⚠buffer Size Ext - cusparse
Zgemvi ⚠ - This function performs the matrix-vector operation
- cusparse
Zgemvi_ ⚠buffer Size - cusparse
Zgpsv ⚠Interleaved Batch - This function computes the solution of multiple penta-diagonal linear systems for i=0,…,
batchCount: - cusparse
Zgpsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Zgtsv2 ⚠ - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Zgtsv2 ⚠Strided Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Zgtsv2 ⚠Strided Batch_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2StridedBatchwhich computes the solution of multiple tridiagonal linear systems for i=0,…,batchCount: - cusparse
Zgtsv2_ ⚠buffer Size Ext - cusparse
Zgtsv2_ ⚠nopivot - This function computes the solution of a tridiagonal linear system with multiple right-hand sides:
- cusparse
Zgtsv2_ ⚠nopivot_ buffer Size Ext - This function returns the size of the buffer used in
gtsv2_nopivotwhich computes the solution of a tridiagonal linear system with multiple right-hand sides. - cusparse
Zgtsv ⚠Interleaved Batch - This function computes the solution of multiple tridiagonal linear systems for i=0,…,
batchCount: - cusparse
Zgtsv ⚠Interleaved Batch_ buffer Size Ext - cusparse
Znnz ⚠ - This function computes the number of nonzero elements per row or column and the total number of nonzero elements in a dense matrix.
- cusparse
Znnz_ ⚠compress - This function is the step one to convert from csr format to compressed csr format.
Type Aliases§
- FILE
- _IO_
lock_ t - __
off64_ t - __off_t
- __
uint64_ t - bsric02
Info_ t - bsrilu02
Info_ t - bsrsm2
Info_ t - bsrsv2
Info_ t - csric02
Info_ t - csrilu02
Info_ t - csru2csr
Info_ t - cuComplex
- cuDouble
Complex - cuFloat
Complex - cusparse
Color Info_ t Deprecated - This is a pointer type to an opaque structure holding the information used in
csrcolor(). - cusparse
Const DnMat Descr_ t - cusparse
Const DnVec Descr_ t - cusparse
Const SpMat Descr_ t - cusparse
Const SpVec Descr_ t - cusparse
DnMat Descr_ t - cusparse
DnVec Descr_ t - cusparse
Handle_ t - This is a pointer type to an opaque cuSPARSE context, which the user must initialize by calling prior to calling
cusparseCreateany other library function. The handle created and returned bycusparseCreatemust be passed to every cuSPARSE function. - cusparse
Logger Callback_ t - cusparse
MatDescr_ t - This structure is used to describe the shape and properties of a matrix.
- cusparse
SpGEMM Descr_ t - cusparse
SpMM OpPlan_ t - cusparse
SpMat Descr_ t - cusparse
SpSM Descr_ t - cusparse
SpSV Descr_ t - cusparse
SpVec Descr_ t - prune
Info_ t - size_t