/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/develop/projects/hipsparselt/library/include/hipsparselt.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/develop/projects/hipsparselt/library/include/hipsparselt.h Source File#

hipSPARSELt: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/develop/projects/hipsparselt/library/include/hipsparselt.h Source File
hipsparselt.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * MIT License
4  *
5  * Copyright (c) 2022-2025 Advanced Micro Devices, Inc.
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a copy
8  * of this software and associated documentation files (the "Software"), to deal
9  * in the Software without restriction, including without limitation the rights
10  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11  * copies of the Software, and to permit persons to whom the Software is
12  * furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in
15  * all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23  * SOFTWARE.
24  *
25  *******************************************************************************/
26 
40 //
41 
67 #pragma once
68 #ifndef _HIPSPARSELT_H_
69 #define _HIPSPARSELT_H_
70 
71 #include <hipsparse/hipsparse.h>
72 #include <hipsparselt/hipsparselt-export.h>
73 #include <hipsparselt/hipsparselt-version.h>
74 
75 #include <hip/hip_complex.h>
76 #include <hip/hip_runtime_api.h>
77 
78 #if defined(__HIP_PLATFORM_AMD__)
79 #include <hip/hip_bfloat16.h>
80 #include <hip/hip_fp16.h>
81 #include <hip/hip_fp8.h>
82 #include <hip/library_types.h>
83 #else
84 #include <cuda_bf16.h>
85 #include <cuda_fp16.h>
86 #include <cuda_fp8.h>
87 #include <library_types.h>
88 #endif
89 
90 /* Opaque structures holding information */
91 // clang-format off
92 
93 #if defined(__HIP_PLATFORM_AMD__)
103 typedef struct hipsparseLtHandle_t {uint8_t data[11024];} hipsparseLtHandle_t;
104 
115 
125 
133 
143 typedef struct hipsparseLtMatmulPlan_t {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
144 #elif defined(__HIP_PLATFORM_NVIDIA__)
145 typedef __nv_bfloat16 hip_bfloat16;
146 typedef struct {uint8_t data[11024];} hipsparseLtHandle_t;
147 typedef struct {uint8_t data[11024];} hipsparseLtMatDescriptor_t;
148 typedef struct {uint8_t data[11024];} hipsparseLtMatmulDescriptor_t;
149 typedef struct {uint8_t data[11024];} hipsparseLtMatmulAlgSelection_t;
150 typedef struct {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
151 #endif
152 
161 typedef enum {
166 
174 typedef enum {
178 
184 typedef enum {
193 
201 typedef enum {
224 
231 typedef enum {
234 
242 typedef enum {
250 
257 typedef enum {
261 
268 typedef enum {
272 
273 // clang-format on
274 
275 #ifdef __cplusplus
276 extern "C" {
277 #endif
278 
287 HIPSPARSELT_EXPORT
289 
304 HIPSPARSELT_EXPORT
305 hipsparseStatus_t hipsparseLtGetVersion(const hipsparseLtHandle_t* handle, int* version);
306 
320 HIPSPARSELT_EXPORT
321 hipsparseStatus_t hipsparseLtGetProperty(hipLibraryPropertyType propertyType, int* value);
322 
323 HIPSPARSELT_EXPORT
324 hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char* rev);
325 
326 HIPSPARSELT_EXPORT
327 hipsparseStatus_t hipsparseLtGetArchName(char** archName);
328 
344 /* hipSPARSE initialization and management routines */
345 HIPSPARSELT_EXPORT
346 hipsparseStatus_t hipsparseLtInit(hipsparseLtHandle_t* handle);
347 
361 HIPSPARSELT_EXPORT
362 hipsparseStatus_t hipsparseLtDestroy(const hipsparseLtHandle_t* handle);
363 
364 /* matrix descriptor */
392 HIPSPARSELT_EXPORT
393 hipsparseStatus_t hipsparseLtDenseDescriptorInit(const hipsparseLtHandle_t* handle,
394  hipsparseLtMatDescriptor_t* matDescr,
395  int64_t rows,
396  int64_t cols,
397  int64_t ld,
398  uint32_t alignment,
399  hipDataType valueType,
400  hipsparseOrder_t order);
401 
432 HIPSPARSELT_EXPORT
434  hipsparseLtMatDescriptor_t* matDescr,
435  int64_t rows,
436  int64_t cols,
437  int64_t ld,
438  uint32_t alignment,
439  hipDataType valueType,
440  hipsparseOrder_t order,
441  hipsparseLtSparsity_t sparsity);
442 
456 HIPSPARSELT_EXPORT
458 
480 HIPSPARSELT_EXPORT
481 hipsparseStatus_t hipsparseLtMatDescSetAttribute(const hipsparseLtHandle_t* handle,
482  hipsparseLtMatDescriptor_t* matDescr,
483  hipsparseLtMatDescAttribute_t matAttribute,
484  const void* data,
485  size_t dataSize);
486 
508 HIPSPARSELT_EXPORT
509 hipsparseStatus_t hipsparseLtMatDescGetAttribute(const hipsparseLtHandle_t* handle,
510  const hipsparseLtMatDescriptor_t* matDescr,
511  hipsparseLtMatDescAttribute_t matAttribute,
512  void* data,
513  size_t dataSize);
514 
515 /* matmul descriptor */
545 HIPSPARSELT_EXPORT
546 hipsparseStatus_t hipsparseLtMatmulDescriptorInit(const hipsparseLtHandle_t* handle,
547  hipsparseLtMatmulDescriptor_t* matmulDescr,
548  hipsparseOperation_t opA,
549  hipsparseOperation_t opB,
550  const hipsparseLtMatDescriptor_t* matA,
551  const hipsparseLtMatDescriptor_t* matB,
552  const hipsparseLtMatDescriptor_t* matC,
553  const hipsparseLtMatDescriptor_t* matD,
554  hipsparseLtComputetype_t computeType);
555 
578 HIPSPARSELT_EXPORT
579 hipsparseStatus_t
581  hipsparseLtMatmulDescriptor_t* matmulDescr,
582  hipsparseLtMatmulDescAttribute_t matmulAttribute,
583  const void* data,
584  size_t dataSize);
585 
608 HIPSPARSELT_EXPORT
609 hipsparseStatus_t
611  const hipsparseLtMatmulDescriptor_t* matmulDescr,
612  hipsparseLtMatmulDescAttribute_t matmulAttribute,
613  void* data,
614  size_t dataSize);
615 
616 /* algorithm selection */
634 HIPSPARSELT_EXPORT
635 hipsparseStatus_t
637  hipsparseLtMatmulAlgSelection_t* algSelection,
638  const hipsparseLtMatmulDescriptor_t* matmulDescr,
640 
663 HIPSPARSELT_EXPORT
665  hipsparseLtMatmulAlgSelection_t* algSelection,
667  const void* data,
668  size_t dataSize);
669 
693 HIPSPARSELT_EXPORT
694 hipsparseStatus_t
696  const hipsparseLtMatmulAlgSelection_t* algSelection,
698  void* data,
699  size_t dataSize);
700 
701 /* matmul plan */
718 HIPSPARSELT_EXPORT
719 hipsparseStatus_t hipsparseLtMatmulGetWorkspace(const hipsparseLtHandle_t* handle,
720  const hipsparseLtMatmulPlan_t* plan,
721  size_t* workspaceSize);
722 
741 HIPSPARSELT_EXPORT
742 hipsparseStatus_t hipsparseLtMatmulPlanInit(const hipsparseLtHandle_t* handle,
744  const hipsparseLtMatmulDescriptor_t* matmulDescr,
745  const hipsparseLtMatmulAlgSelection_t* algSelection);
746 
760 HIPSPARSELT_EXPORT
762 
763 /* matmul execution */
809 HIPSPARSELT_EXPORT
810 hipsparseStatus_t hipsparseLtMatmul(const hipsparseLtHandle_t* handle,
811  const hipsparseLtMatmulPlan_t* plan,
812  const void* alpha,
813  const void* d_A,
814  const void* d_B,
815  const void* beta,
816  const void* d_C,
817  void* d_D,
818  void* workspace,
819  hipStream_t* streams,
820  int32_t numStreams);
821 
876 HIPSPARSELT_EXPORT
877 hipsparseStatus_t hipsparseLtMatmulSearch(const hipsparseLtHandle_t* handle,
879  const void* alpha,
880  const void* d_A,
881  const void* d_B,
882  const void* beta,
883  const void* d_C,
884  void* d_D,
885  void* workspace,
886  hipStream_t* streams,
887  int32_t numStreams);
888 
889 /* helper */
890 // prune
917 HIPSPARSELT_EXPORT
918 hipsparseStatus_t hipsparseLtSpMMAPrune(const hipsparseLtHandle_t* handle,
919  const hipsparseLtMatmulDescriptor_t* matmulDescr,
920  const void* d_in,
921  void* d_out,
922  hipsparseLtPruneAlg_t pruneAlg,
923  hipStream_t stream);
924 
947 HIPSPARSELT_EXPORT
948 hipsparseStatus_t hipsparseLtSpMMAPruneCheck(const hipsparseLtHandle_t* handle,
949  const hipsparseLtMatmulDescriptor_t* matmulDescr,
950  const void* d_in,
951  int* d_valid,
952  hipStream_t stream);
953 
985 HIPSPARSELT_EXPORT
986 hipsparseStatus_t hipsparseLtSpMMAPrune2(const hipsparseLtHandle_t* handle,
987  const hipsparseLtMatDescriptor_t* sparseMatDescr,
988  int isSparseA,
989  hipsparseOperation_t op,
990  const void* d_in,
991  void* d_out,
992  hipsparseLtPruneAlg_t pruneAlg,
993  hipStream_t stream);
994 
1021 HIPSPARSELT_EXPORT
1022 hipsparseStatus_t hipsparseLtSpMMAPruneCheck2(const hipsparseLtHandle_t* handle,
1023  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1024  int isSparseA,
1025  hipsparseOperation_t op,
1026  const void* d_in,
1027  int* d_valid,
1028  hipStream_t stream);
1029 
1030 // compression
1050 HIPSPARSELT_EXPORT
1051 hipsparseStatus_t hipsparseLtSpMMACompressedSize(const hipsparseLtHandle_t* handle,
1052  const hipsparseLtMatmulPlan_t* plan,
1053  size_t* compressedSize,
1054  size_t* compressBufferSize);
1055 
1081 HIPSPARSELT_EXPORT
1082 hipsparseStatus_t hipsparseLtSpMMACompress(const hipsparseLtHandle_t* handle,
1083  const hipsparseLtMatmulPlan_t* plan,
1084  const void* d_dense,
1085  void* d_compressed,
1086  void* d_compressBuffer,
1087  hipStream_t stream);
1088 
1109 HIPSPARSELT_EXPORT
1111  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1112  size_t* compressedSize,
1113  size_t* compressBufferSize);
1114 
1144 HIPSPARSELT_EXPORT
1145 hipsparseStatus_t hipsparseLtSpMMACompress2(const hipsparseLtHandle_t* handle,
1146  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1147  int isSparseA,
1148  hipsparseOperation_t op,
1149  const void* d_dense,
1150  void* d_compressed,
1151  void* d_compressBuffer,
1152  hipStream_t stream);
1153 
1154 #ifdef __cplusplus
1155 }
1156 #endif
1157 
1158 #endif // _HIPSPARSELT_H_
void hipsparseLtInitialize()
Initialize hipSPARSELt for the current HIP device.
hipsparseStatus_t hipsparseLtSpMMAPrune2(const hipsparseLtHandle_t *handle, const hipsparseLtMatDescriptor_t *sparseMatDescr, int isSparseA, hipsparseOperation_t op, const void *d_in, void *d_out, hipsparseLtPruneAlg_t pruneAlg, hipStream_t stream)
Prune a dense matrix.
hipsparseStatus_t hipsparseLtSpMMACompressedSize2(const hipsparseLtHandle_t *handle, const hipsparseLtMatDescriptor_t *sparseMatDescr, size_t *compressedSize, size_t *compressBufferSize)
Provide the size of the compressed matrix.
hipsparseStatus_t hipsparseLtSpMMACompress2(const hipsparseLtHandle_t *handle, const hipsparseLtMatDescriptor_t *sparseMatDescr, int isSparseA, hipsparseOperation_t op, const void *d_dense, void *d_compressed, void *d_compressBuffer, hipStream_t stream)
Compress a dense matrix to structured matrix.
hipsparseStatus_t hipsparseLtSpMMAPruneCheck2(const hipsparseLtHandle_t *handle, const hipsparseLtMatDescriptor_t *sparseMatDescr, int isSparseA, hipsparseOperation_t op, const void *d_in, int *d_valid, hipStream_t stream)
Check the correctness of the pruning structure for a given matrix.
hipsparseStatus_t hipsparseLtSpMMAPrune(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulDescriptor_t *matmulDescr, const void *d_in, void *d_out, hipsparseLtPruneAlg_t pruneAlg, hipStream_t stream)
Prune a dense matrix.
hipsparseStatus_t hipsparseLtSpMMACompressedSize(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulPlan_t *plan, size_t *compressedSize, size_t *compressBufferSize)
Provide the size of the compressed matrix.
hipsparseStatus_t hipsparseLtSpMMACompress(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulPlan_t *plan, const void *d_dense, void *d_compressed, void *d_compressBuffer, hipStream_t stream)
Compress a dense matrix to structured matrix.
hipsparseStatus_t hipsparseLtSpMMAPruneCheck(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulDescriptor_t *matmulDescr, const void *d_in, int *d_valid, hipStream_t stream)
Check the correctness of the pruning structure for a given matrix.
hipsparseStatus_t hipsparseLtInit(hipsparseLtHandle_t *handle)
Create a hipSPARSELt handle.
hipsparseStatus_t hipsparseLtGetVersion(const hipsparseLtHandle_t *handle, int *version)
Retrieve the version number of the hipSPARSELt library.
hipsparseStatus_t hipsparseLtDestroy(const hipsparseLtHandle_t *handle)
Destroy a hipSPARSELt handle.
hipsparseStatus_t hipsparseLtGetProperty(hipLibraryPropertyType propertyType, int *value)
Retrieve the value of the requested property.
hipsparseStatus_t hipsparseLtMatmulAlgSelectionInit(const hipsparseLtHandle_t *handle, hipsparseLtMatmulAlgSelection_t *algSelection, const hipsparseLtMatmulDescriptor_t *matmulDescr, hipsparseLtMatmulAlg_t alg)
Initializes the algorithm selection descriptor.
hipsparseStatus_t hipsparseLtMatmulAlgSetAttribute(const hipsparseLtHandle_t *handle, hipsparseLtMatmulAlgSelection_t *algSelection, hipsparseLtMatmulAlgAttribute_t attribute, const void *data, size_t dataSize)
Specify the algorithm attribute of a algorithm selection descriptor.
hipsparseStatus_t hipsparseLtMatmulAlgGetAttribute(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulAlgSelection_t *algSelection, hipsparseLtMatmulAlgAttribute_t attribute, void *data, size_t dataSize)
Get the specific algorithm attribute from the algorithm selection descriptor.
hipsparseStatus_t hipsparseLtMatmulDescGetAttribute(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulDescriptor_t *matmulDescr, hipsparseLtMatmulDescAttribute_t matmulAttribute, void *data, size_t dataSize)
Get the matrix type of a matrix descriptor.
hipsparseStatus_t hipsparseLtMatmulDescriptorInit(const hipsparseLtHandle_t *handle, hipsparseLtMatmulDescriptor_t *matmulDescr, hipsparseOperation_t opA, hipsparseOperation_t opB, const hipsparseLtMatDescriptor_t *matA, const hipsparseLtMatDescriptor_t *matB, const hipsparseLtMatDescriptor_t *matC, const hipsparseLtMatDescriptor_t *matD, hipsparseLtComputetype_t computeType)
Initializes the matrix multiplication descriptor.
hipsparseStatus_t hipsparseLtMatmulDescSetAttribute(const hipsparseLtHandle_t *handle, hipsparseLtMatmulDescriptor_t *matmulDescr, hipsparseLtMatmulDescAttribute_t matmulAttribute, const void *data, size_t dataSize)
Specify the matrix attribute of a matrix descriptor.
hipsparseStatus_t hipsparseLtMatmulSearch(const hipsparseLtHandle_t *handle, hipsparseLtMatmulPlan_t *plan, const void *alpha, const void *d_A, const void *d_B, const void *beta, const void *d_C, void *d_D, void *workspace, hipStream_t *streams, int32_t numStreams)
Sparse matrix and dense matrix multiplication.
hipsparseStatus_t hipsparseLtMatmul(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulPlan_t *plan, const void *alpha, const void *d_A, const void *d_B, const void *beta, const void *d_C, void *d_D, void *workspace, hipStream_t *streams, int32_t numStreams)
Sparse matrix and dense matrix multiplication.
hipsparseStatus_t hipsparseLtMatmulGetWorkspace(const hipsparseLtHandle_t *handle, const hipsparseLtMatmulPlan_t *plan, size_t *workspaceSize)
Determines the required workspace size.
hipsparseStatus_t hipsparseLtMatmulPlanDestroy(const hipsparseLtMatmulPlan_t *plan)
Destroy a matrix multiplication plan descriptor.
hipsparseStatus_t hipsparseLtMatmulPlanInit(const hipsparseLtHandle_t *handle, hipsparseLtMatmulPlan_t *plan, const hipsparseLtMatmulDescriptor_t *matmulDescr, const hipsparseLtMatmulAlgSelection_t *algSelection)
Initializes the matrix multiplication plan descriptor.
hipsparseStatus_t hipsparseLtStructuredDescriptorInit(const hipsparseLtHandle_t *handle, hipsparseLtMatDescriptor_t *matDescr, int64_t rows, int64_t cols, int64_t ld, uint32_t alignment, hipDataType valueType, hipsparseOrder_t order, hipsparseLtSparsity_t sparsity)
Create a descriptor for a structured matrix.
hipsparseStatus_t hipsparseLtMatDescGetAttribute(const hipsparseLtHandle_t *handle, const hipsparseLtMatDescriptor_t *matDescr, hipsparseLtMatDescAttribute_t matAttribute, void *data, size_t dataSize)
Get the matrix type of a matrix descriptor.
hipsparseStatus_t hipsparseLtMatDescSetAttribute(const hipsparseLtHandle_t *handle, hipsparseLtMatDescriptor_t *matDescr, hipsparseLtMatDescAttribute_t matAttribute, const void *data, size_t dataSize)
Specify the matrix attribute of a matrix descriptor.
hipsparseStatus_t hipsparseLtDenseDescriptorInit(const hipsparseLtHandle_t *handle, hipsparseLtMatDescriptor_t *matDescr, int64_t rows, int64_t cols, int64_t ld, uint32_t alignment, hipDataType valueType, hipsparseOrder_t order)
Create a descriptor for a dense matrix.
hipsparseStatus_t hipsparseLtMatDescriptorDestroy(const hipsparseLtMatDescriptor_t *matDescr)
Destroy a matrix descriptor.
hipsparseLtSparsity_t
Specify the sparsity of the structured matrix.
Definition: hipsparselt.h:161
hipsparseLtMatmulAlg_t
Specify the algorithm for matrix-matrix multiplication.
Definition: hipsparselt.h:231
hipsparseLtMatmulAlgAttribute_t
Specify the matrix multiplication algorithm attributes.
Definition: hipsparselt.h:242
hipsparseLtComputetype_t
Specify the compute precision modes of the matrix.
Definition: hipsparselt.h:184
hipsparseLtSplitKMode_t
Specify the Split-K mode value.
Definition: hipsparselt.h:268
hipsparseLtMatmulDescAttribute_t
Specify the additional attributes of a matrix multiplication descriptor.
Definition: hipsparselt.h:201
hipsparseLtPruneAlg_t
Specify the pruning algorithm to apply to the structured matrix before the compression.
Definition: hipsparselt.h:257
hipsparseLtMatDescAttribute_t
Specify the additional attributes of a matrix descriptor.
Definition: hipsparselt.h:174
@ HIPSPARSELT_SPARSITY_50_PERCENT
Definition: hipsparselt.h:162
@ HIPSPARSELT_MATMUL_ALG_DEFAULT
Definition: hipsparselt.h:232
@ HIPSPARSELT_MATMUL_SPLIT_K
Definition: hipsparselt.h:246
@ HIPSPARSELT_MATMUL_SPLIT_K_BUFFERS
Definition: hipsparselt.h:248
@ HIPSPARSELT_MATMUL_SEARCH_ITERATIONS
Definition: hipsparselt.h:245
@ HIPSPARSELT_MATMUL_SPLIT_K_MODE
Definition: hipsparselt.h:247
@ HIPSPARSELT_MATMUL_ALG_CONFIG_ID
Definition: hipsparselt.h:243
@ HIPSPARSELT_MATMUL_ALG_CONFIG_MAX_ID
Definition: hipsparselt.h:244
@ HIPSPARSELT_COMPUTE_32F
Definition: hipsparselt.h:187
@ HIPSPARSELT_COMPUTE_TF32_FAST
Definition: hipsparselt.h:190
@ HIPSPARSELT_COMPUTE_TF32
Definition: hipsparselt.h:188
@ HIPSPARSELT_COMPUTE_32I
Definition: hipsparselt.h:186
@ HIPSPARSELT_COMPUTE_16F
Definition: hipsparselt.h:185
@ HIPSPARSELT_SPLIT_K_MODE_TWO_KERNELS
Definition: hipsparselt.h:270
@ HIPSPARSELT_SPLIT_K_MODE_ONE_KERNEL
Definition: hipsparselt.h:269
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_UPPERBOUND
Definition: hipsparselt.h:203
@ HIPSPARSELT_MATMUL_BIAS_STRIDE
Definition: hipsparselt.h:209
@ HIPSPARSELT_MATMUL_BIAS_POINTER
Definition: hipsparselt.h:210
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU
Definition: hipsparselt.h:212
@ HIPSPARSELT_MATMUL_BIAS_TYPE
Definition: hipsparselt.h:218
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU_ALPHA
Definition: hipsparselt.h:213
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_BETA
Definition: hipsparselt.h:217
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU_SCALING
Definition: hipsparselt.h:206
@ HIPSPARSELT_MATMUL_ALPHA_VECTOR_SCALING
Definition: hipsparselt.h:207
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH
Definition: hipsparselt.h:215
@ HIPSPARSELT_MATMUL_ACTIVATION_SIGMOID
Definition: hipsparselt.h:214
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_ALPHA
Definition: hipsparselt.h:216
@ HIPSPARSELT_MATMUL_BETA_VECTOR_SCALING
Definition: hipsparselt.h:208
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU
Definition: hipsparselt.h:202
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU
Definition: hipsparselt.h:205
@ HIPSPARSELT_MATMUL_ACTIVATION_ABS
Definition: hipsparselt.h:211
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_THRESHOLD
Definition: hipsparselt.h:204
@ HIPSPARSELT_MATMUL_SPARSE_MAT_POINTER
Definition: hipsparselt.h:222
@ HIPSPARSELT_PRUNE_SPMMA_TILE
Definition: hipsparselt.h:258
@ HIPSPARSELT_PRUNE_SPMMA_STRIP
Definition: hipsparselt.h:259
@ HIPSPARSELT_MAT_BATCH_STRIDE
Definition: hipsparselt.h:176
@ HIPSPARSELT_MAT_NUM_BATCHES
Definition: hipsparselt.h:175
hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char *rev)
hipsparseStatus_t hipsparseLtGetArchName(char **archName)
Handle to the hipSPARSELt library context queue.
Definition: hipsparselt.h:103
uint8_t data[11024]
Definition: hipsparselt.h:103
Descriptor of the matrix.
Definition: hipsparselt.h:114
uint8_t data[11024]
Definition: hipsparselt.h:114
Descriptor of the matrix multiplication algorithm.
Definition: hipsparselt.h:132
uint8_t data[11024]
Definition: hipsparselt.h:132
Descriptor of the matrix multiplication operation.
Definition: hipsparselt.h:124
uint8_t data[11024]
Definition: hipsparselt.h:124
Descriptor of the matrix multiplication execution plan.
Definition: hipsparselt.h:143
uint8_t data[11024]
Definition: hipsparselt.h:143