Types#
hipsparseHandle_t#
-
typedef void *hipsparseHandle_t#
Handle to the hipSPARSE library context queue.
The hipSPARSE handle is a structure holding the hipSPARSE library context. It must be initialized using hipsparseCreate() and the returned handle must be passed to all subsequent library function calls. It should be destroyed at the end using hipsparseDestroy().
hipsparseMatDescr_t#
-
typedef void *hipsparseMatDescr_t#
Descriptor of the matrix.
The hipSPARSE matrix descriptor is a structure holding all properties of a matrix. It must be initialized using hipsparseCreateMatDescr() and the returned descriptor must be passed to all subsequent library calls that involve the matrix. It should be destroyed at the end using hipsparseDestroyMatDescr().
hipsparseHybMat_t#
-
typedef void *hipsparseHybMat_t#
HYB matrix storage format.
The hipSPARSE HYB matrix structure holds the HYB matrix. It must be initialized using hipsparseCreateHybMat() and the returned HYB matrix must be passed to all subsequent library calls that involve the matrix. It should be destroyed at the end using hipsparseDestroyHybMat().
For more details on the HYB format, see HYB storage format.
hipsparseColorInfo_t#
-
typedef void *hipsparseColorInfo_t#
Coloring info.
The hipSPARSE ColorInfo structure holds the coloring information. It must be initialized using hipsparseCreateColorInfo() and the returned structure must be passed to all subsequent library calls that involve the coloring. It should be destroyed at the end using hipsparseDestroyColorInfo().
bsrsv2Info_t#
-
typedef struct bsrsv2Info *bsrsv2Info_t#
bsrsm2Info_t#
-
typedef struct bsrsm2Info *bsrsm2Info_t#
bsrilu02Info_t#
-
typedef struct bsrilu02Info *bsrilu02Info_t#
bsric02Info_t#
-
typedef struct bsric02Info *bsric02Info_t#
csrsv2Info_t#
-
typedef struct csrsv2Info *csrsv2Info_t#
csrsm2Info_t#
-
typedef struct csrsm2Info *csrsm2Info_t#
csrilu02Info_t#
-
typedef struct csrilu02Info *csrilu02Info_t#
csric02Info_t#
-
typedef struct csric02Info *csric02Info_t#
csrgemm2Info_t#
-
typedef struct csrgemm2Info *csrgemm2Info_t#
pruneInfo_t#
-
typedef struct pruneInfo *pruneInfo_t#
csru2csrInfo_t#
-
typedef struct csru2csrInfo *csru2csrInfo_t#
hipsparseSpVecDescr_t#
-
typedef void *hipsparseSpVecDescr_t#
hipsparseSpMatDescr_t#
-
typedef void *hipsparseSpMatDescr_t#
hipsparseDnVecDescr_t#
-
typedef void *hipsparseDnVecDescr_t#
hipsparseDnMatDescr_t#
-
typedef void *hipsparseDnMatDescr_t#
hipsparseSpGEMMDescr_t#
-
typedef struct hipsparseSpGEMMDescr *hipsparseSpGEMMDescr_t#
hipsparseSpSVDescr_t#
-
typedef struct hipsparseSpSVDescr *hipsparseSpSVDescr_t#
hipsparseSpSMDescr_t#
-
typedef struct hipsparseSpSMDescr *hipsparseSpSMDescr_t#
hipsparseStatus_t#
-
enum hipsparseStatus_t#
List of hipsparse status codes definition.
This is a list of the hipsparseStatus_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_STATUS_SUCCESS#
Function succeeds
-
enumerator HIPSPARSE_STATUS_NOT_INITIALIZED#
hipSPARSE was not initialized
-
enumerator HIPSPARSE_STATUS_ALLOC_FAILED#
Resource allocation failed
-
enumerator HIPSPARSE_STATUS_INVALID_VALUE#
Unsupported value was passed to the function
-
enumerator HIPSPARSE_STATUS_ARCH_MISMATCH#
Device architecture not supported
-
enumerator HIPSPARSE_STATUS_MAPPING_ERROR#
Access to GPU memory space failed
-
enumerator HIPSPARSE_STATUS_EXECUTION_FAILED#
GPU program failed to execute
-
enumerator HIPSPARSE_STATUS_INTERNAL_ERROR#
An internal hipSPARSE operation failed
-
enumerator HIPSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED#
Matrix type not supported
-
enumerator HIPSPARSE_STATUS_ZERO_PIVOT#
Zero pivot was computed
-
enumerator HIPSPARSE_STATUS_NOT_SUPPORTED#
Operation is not supported
-
enumerator HIPSPARSE_STATUS_INSUFFICIENT_RESOURCES#
Resources are insufficient
-
enumerator HIPSPARSE_STATUS_SUCCESS#
hipsparsePointerMode_t#
-
enum hipsparsePointerMode_t#
Indicates if the pointer is device pointer or host pointer.
The hipsparsePointerMode_t indicates whether scalar values are passed by reference on the host or device. The hipsparsePointerMode_t can be changed by hipsparseSetPointerMode(). The currently used pointer mode can be obtained by hipsparseGetPointerMode().
Values:
-
enumerator HIPSPARSE_POINTER_MODE_HOST#
Scalar pointers are in host memory
-
enumerator HIPSPARSE_POINTER_MODE_DEVICE#
Scalar pointers are in device memory
-
enumerator HIPSPARSE_POINTER_MODE_HOST#
hipsparseAction_t#
-
enum hipsparseAction_t#
Specify where the operation is performed on.
The hipsparseAction_t indicates whether the operation is performed on the full matrix, or only on the sparsity pattern of the matrix.
Values:
-
enumerator HIPSPARSE_ACTION_SYMBOLIC#
Operate only on indices
-
enumerator HIPSPARSE_ACTION_NUMERIC#
Operate on data and indices
-
enumerator HIPSPARSE_ACTION_SYMBOLIC#
hipsparseMatrixType_t#
-
enum hipsparseMatrixType_t#
Specify the matrix type.
The hipsparseMatrixType_t indices the type of a matrix. For a given hipsparseMatDescr_t, the hipsparseMatrixType_t can be set using hipsparseSetMatType(). The current hipsparseMatrixType_t of a matrix can be obtained by hipsparseGetMatType().
Values:
-
enumerator HIPSPARSE_MATRIX_TYPE_GENERAL#
General matrix type
-
enumerator HIPSPARSE_MATRIX_TYPE_SYMMETRIC#
Symmetric matrix type
-
enumerator HIPSPARSE_MATRIX_TYPE_HERMITIAN#
Hermitian matrix type
-
enumerator HIPSPARSE_MATRIX_TYPE_TRIANGULAR#
Triangular matrix type
-
enumerator HIPSPARSE_MATRIX_TYPE_GENERAL#
hipsparseFillMode_t#
-
enum hipsparseFillMode_t#
Specify the matrix fill mode.
The hipsparseFillMode_t indicates whether the lower or the upper part is stored in a sparse triangular matrix. For a given hipsparseMatDescr_t, the hipsparseFillMode_t can be set using hipsparseSetMatFillMode(). The current hipsparseFillMode_t of a matrix can be obtained by hipsparseGetMatFillMode().
Values:
-
enumerator HIPSPARSE_FILL_MODE_LOWER#
Lower triangular part is stored
-
enumerator HIPSPARSE_FILL_MODE_UPPER#
Upper triangular part is stored
-
enumerator HIPSPARSE_FILL_MODE_LOWER#
hipsparseDiagType_t#
-
enum hipsparseDiagType_t#
Indicates if the diagonal entries are unity.
The hipsparseDiagType_t indicates whether the diagonal entries of a matrix are unity or not. If HIPSPARSE_DIAG_TYPE_UNIT is specified, all present diagonal values will be ignored. For a given hipsparseMatDescr_t, the hipsparseDiagType_t can be set using hipsparseSetMatDiagType(). The current hipsparseDiagType_t of a matrix can be obtained by hipsparseGetMatDiagType().
Values:
-
enumerator HIPSPARSE_DIAG_TYPE_NON_UNIT#
Diagonal entries are non-unity
-
enumerator HIPSPARSE_DIAG_TYPE_UNIT#
Diagonal entries are unity
-
enumerator HIPSPARSE_DIAG_TYPE_NON_UNIT#
hipsparseIndexBase_t#
-
enum hipsparseIndexBase_t#
Specify the matrix index base.
The hipsparseIndexBase_t indicates the index base of the indices. For a given hipsparseMatDescr_t, the hipsparseIndexBase_t can be set using hipsparseSetMatIndexBase(). The current hipsparseIndexBase_t of a matrix can be obtained by hipsparseGetMatIndexBase().
Values:
-
enumerator HIPSPARSE_INDEX_BASE_ZERO#
Zero based indexing
-
enumerator HIPSPARSE_INDEX_BASE_ONE#
One based indexing
-
enumerator HIPSPARSE_INDEX_BASE_ZERO#
hipsparseOperation_t#
-
enum hipsparseOperation_t#
Specify whether the matrix is to be transposed or not.
The hipsparseOperation_t indicates the operation performed with the given matrix.
Values:
-
enumerator HIPSPARSE_OPERATION_NON_TRANSPOSE#
Operate with matrix
-
enumerator HIPSPARSE_OPERATION_TRANSPOSE#
Operate with transpose
-
enumerator HIPSPARSE_OPERATION_CONJUGATE_TRANSPOSE#
Operate with conj. transpose
-
enumerator HIPSPARSE_OPERATION_NON_TRANSPOSE#
hipsparseHybPartition_t#
-
enum hipsparseHybPartition_t#
HYB matrix partitioning type.
The hipsparseHybPartition_t type indicates how the hybrid format partitioning between COO and ELL storage formats is performed.
Values:
-
enumerator HIPSPARSE_HYB_PARTITION_AUTO#
Automatically decide on ELL nnz per row
-
enumerator HIPSPARSE_HYB_PARTITION_USER#
User given ELL nnz per row
-
enumerator HIPSPARSE_HYB_PARTITION_MAX#
Max ELL nnz per row, no COO part
-
enumerator HIPSPARSE_HYB_PARTITION_AUTO#
hipsparseSolvePolicy_t#
-
enum hipsparseSolvePolicy_t#
Specify policy in triangular solvers and factorizations.
The hipsparseSolvePolicy_t type indicates the solve policy for the triangular solve.
Values:
-
enumerator HIPSPARSE_SOLVE_POLICY_NO_LEVEL#
No level information generated
-
enumerator HIPSPARSE_SOLVE_POLICY_USE_LEVEL#
Generate level information
-
enumerator HIPSPARSE_SOLVE_POLICY_NO_LEVEL#
hipsparseSideMode_t#
hipsparseDirection_t#
-
enum hipsparseDirection_t#
Specify the matrix direction.
The hipsparseDirection_t indicates whether a dense matrix should be parsed by rows or by columns, assuming column-major storage.
Values:
-
enumerator HIPSPARSE_DIRECTION_ROW#
Parse the matrix by rows
-
enumerator HIPSPARSE_DIRECTION_COLUMN#
Parse the matrix by columns
-
enumerator HIPSPARSE_DIRECTION_ROW#
hipsparseFormat_t#
-
enum hipsparseFormat_t#
List of hipsparse sparse matrix formats.
This is a list of the hipsparseFormat_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_FORMAT_CSR#
-
enumerator HIPSPARSE_FORMAT_CSC#
-
enumerator HIPSPARSE_FORMAT_COO#
-
enumerator HIPSPARSE_FORMAT_COO_AOS#
-
enumerator HIPSPARSE_FORMAT_BLOCKED_ELL#
-
enumerator HIPSPARSE_FORMAT_CSR#
hipsparseOrder_t#
-
enum hipsparseOrder_t#
List of hipsparse dense matrix memory layout ordering.
This is a list of the hipsparseOrder_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_ORDER_ROW#
Row major
-
enumerator HIPSPARSE_DEPRECATED_MSG#
Column major
-
enumerator HIPSPARSE_ORDER_COL#
Column major
-
enumerator HIPSPARSE_ORDER_ROW#
hipsparseIndextype_t#
-
enum hipsparseIndexType_t#
List of hipsparse index type used by sparse matrix indices.
This is a list of the hipsparseIndexType_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_INDEX_16U#
16 bit unsigned integer indices
-
enumerator HIPSPARSE_INDEX_32I#
32 bit signed integer indices
-
enumerator HIPSPARSE_INDEX_64I#
64 bit signed integer indices
-
enumerator HIPSPARSE_INDEX_16U#
hipsparseCsr2CscAlg_t#
hipsparseSpMVAlg_t#
-
enum hipsparseSpMVAlg_t#
List of hipsparse SpMV algorithms.
This is a list of the hipsparseSpMVAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_MV_ALG_DEFAULT#
-
enumerator HIPSPARSE_COOMV_ALG#
-
enumerator HIPSPARSE_CSRMV_ALG1#
-
enumerator HIPSPARSE_CSRMV_ALG2#
-
enumerator HIPSPARSE_SPMV_ALG_DEFAULT#
-
enumerator HIPSPARSE_SPMV_COO_ALG1#
-
enumerator HIPSPARSE_SPMV_COO_ALG2#
-
enumerator HIPSPARSE_SPMV_CSR_ALG1#
-
enumerator HIPSPARSE_SPMV_CSR_ALG2#
-
enumerator HIPSPARSE_MV_ALG_DEFAULT#
hipsparseSpMMAlg_t#
-
enum hipsparseSpMMAlg_t#
List of hipsparse SpMM algorithms.
This is a list of the hipsparseSpMMAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_MM_ALG_DEFAULT#
-
enumerator HIPSPARSE_COOMM_ALG1#
-
enumerator HIPSPARSE_COOMM_ALG2#
-
enumerator HIPSPARSE_COOMM_ALG3#
-
enumerator HIPSPARSE_CSRMM_ALG1#
-
enumerator HIPSPARSE_SPMM_ALG_DEFAULT#
-
enumerator HIPSPARSE_SPMM_COO_ALG1#
-
enumerator HIPSPARSE_SPMM_COO_ALG2#
-
enumerator HIPSPARSE_SPMM_COO_ALG3#
-
enumerator HIPSPARSE_SPMM_COO_ALG4#
-
enumerator HIPSPARSE_SPMM_CSR_ALG1#
-
enumerator HIPSPARSE_SPMM_CSR_ALG2#
-
enumerator HIPSPARSE_SPMM_BLOCKED_ELL_ALG1#
-
enumerator HIPSPARSE_SPMM_CSR_ALG3#
-
enumerator HIPSPARSE_MM_ALG_DEFAULT#
hipsparseSparseToDenseAlg_t#
-
enum hipsparseSparseToDenseAlg_t#
List of hipsparse SparseToDense algorithms.
This is a list of the hipsparseSparseToDenseAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SPARSETODENSE_ALG_DEFAULT#
-
enumerator HIPSPARSE_SPARSETODENSE_ALG_DEFAULT#
hipsparseDenseToSparseAlg_t#
-
enum hipsparseDenseToSparseAlg_t#
List of hipsparse DenseToSparse algorithms.
This is a list of the hipsparseDenseToSparseAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_DENSETOSPARSE_ALG_DEFAULT#
-
enumerator HIPSPARSE_DENSETOSPARSE_ALG_DEFAULT#
hipsparseSDDMMAlg_t#
-
enum hipsparseSDDMMAlg_t#
List of hipsparse SDDMM algorithms.
This is a list of the hipsparseSDDMMAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SDDMM_ALG_DEFAULT#
-
enumerator HIPSPARSE_SDDMM_ALG_DEFAULT#
hipsparseSpSVAlg_t#
-
enum hipsparseSpSVAlg_t#
List of hipsparse SpSV algorithms.
This is a list of the hipsparseSpSVAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SPSV_ALG_DEFAULT#
-
enumerator HIPSPARSE_SPSV_ALG_DEFAULT#
hipsparseSpSMAlg_t#
-
enum hipsparseSpSMAlg_t#
List of hipsparse SpSM algorithms.
This is a list of the hipsparseSpSMAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SPSM_ALG_DEFAULT#
-
enumerator HIPSPARSE_SPSM_ALG_DEFAULT#
hipsparseSpMatAttribute_t#
-
enum hipsparseSpMatAttribute_t#
List of hipsparse attributes.
This is a list of the hipsparseSpMatAttribute_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SPMAT_FILL_MODE#
Fill mode attribute
-
enumerator HIPSPARSE_SPMAT_DIAG_TYPE#
Diag type attribute
-
enumerator HIPSPARSE_SPMAT_FILL_MODE#
hipsparseSpGEMMAlg_t#
-
enum hipsparseSpGEMMAlg_t#
List of hipsparse SpGEMM algorithms.
This is a list of the hipsparseSpGEMMAlg_t types that are used by the hipSPARSE library.
Values:
-
enumerator HIPSPARSE_SPGEMM_DEFAULT#
-
enumerator HIPSPARSE_SPGEMM_CSR_ALG_NONDETERMINISTIC#
-
enumerator HIPSPARSE_SPGEMM_CSR_ALG_DETERMINISTIC#
-
enumerator HIPSPARSE_SPGEMM_ALG1#
-
enumerator HIPSPARSE_SPGEMM_ALG2#
-
enumerator HIPSPARSE_SPGEMM_ALG3#
-
enumerator HIPSPARSE_SPGEMM_DEFAULT#