Data types#
Data Structures | |
struct | hipsparseLtHandle_t |
Handle to the hipSPARSELt library context queue. More... | |
struct | hipsparseLtMatDescriptor_t |
Descriptor of the matrix. More... | |
struct | hipsparseLtMatmulDescriptor_t |
Descriptor of the matrix multiplication operation. More... | |
struct | hipsparseLtMatmulAlgSelection_t |
Descriptor of the matrix multiplication algorithm. More... | |
struct | hipsparseLtMatmulPlan_t |
Descriptor of the matrix multiplication execution plan. More... | |
Detailed Description
HIP = Heterogeneous-compute Interface for Portability
Define a extremely thin runtime layer that allows source code to be compiled unmodified through either AMD HCC or NVCC. Key features tend to be in the spirit and terminology of CUDA, but with a portable path to other accelerators as well.
This is the master include file for hipSPARSELt, wrapping around hipSPARSELt and cuSPARSELt "version 0.3".
Enumeration Type Documentation
◆ hipsparseLtComputetype_t
Specify the compute precision modes of the matrix.
◆ hipsparseLtDatatype_t
List of hipsparselt data types.
Indicates the precision width of data stored in a hipsparselt type. Should use hipDatatype_t instead in the furture.
◆ hipsparseLtMatDescAttribute_t
Specify the additional attributes of a matrix descriptor.
The hipsparseLtMatDescAttribute_t is used in the hipsparseLtMatDescSetAttribute and hipsparseLtMatDescGetAttribute functions
◆ hipsparseLtMatmulAlg_t
Specify the algorithm for matrix-matrix multiplication.
The hipsparseLtMatmulAlg_t is used in the hipsparseLtMatmulAlgSelectionInit function.
Enumerator | |
---|---|
HIPSPARSELT_MATMUL_ALG_DEFAULT |
◆ hipsparseLtMatmulAlgAttribute_t
Specify the matrix multiplication algorithm attributes.
The hipsparseLtMatmulAlgAttribute_t is used in the hipsparseLtMatmulAlgGetAttribute and hipsparseLtMatmulAlgSetAttribute functions.
◆ hipsparseLtMatmulDescAttribute_t
Specify the additional attributes of a matrix multiplication descriptor.
The hipsparseLtMatmulDescAttribute_t is used in the hipsparseLtMatmulDescSetAttribute and hipsparseLtMatmulDescGetAttribute functions
◆ hipsparseLtPruneAlg_t
Specify the pruning algorithm to apply to the structured matrix before the compression.
The hipsparseLtPruneAlg_t is used in the hipsparseLtSpMMAPrune and hipsparseLtSpMMAPrune2 function.
◆ hipsparseLtSparsity_t
Specify the sparsity of the structured matrix.
The enumerator specifies the sparsity ratio of the structured matrix as sparsity = nnz / total elements The sparsity property is used in the hipsparseLtStructuredDescriptorInit function.
Enumerator | |
---|---|
HIPSPARSELT_SPARSITY_50_PERCENT | 50% sparsity ratio - 1:2 for tf32 and float, 2:4 for half, bfloat16, int |
◆ hipsparseLtSplitKMode_t
Specify the split k mode value.
The hipsparseLtSplitKMode_t is used by HIPSPARSELT_MATMUL_SPLIT_K_MODE attribute in hipsparseLtMatmulAlgAttribute_t.
Enumerator | |
---|---|
HIPSPARSELT_SPLIT_K_MODE_ONE_KERNEL | Use the same SP-MM kernel to do the final reduction |
HIPSPARSELT_SPLIT_K_MODE_TWO_KERNELS | Use another kernel to do the final reduction |