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

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

hipSPARSELt: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/latest/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 
654 HIPSPARSELT_EXPORT
656 
679 HIPSPARSELT_EXPORT
681  hipsparseLtMatmulAlgSelection_t* algSelection,
683  const void* data,
684  size_t dataSize);
685 
709 HIPSPARSELT_EXPORT
710 hipsparseStatus_t
712  const hipsparseLtMatmulAlgSelection_t* algSelection,
714  void* data,
715  size_t dataSize);
716 
717 /* matmul plan */
734 HIPSPARSELT_EXPORT
735 hipsparseStatus_t hipsparseLtMatmulGetWorkspace(const hipsparseLtHandle_t* handle,
736  const hipsparseLtMatmulPlan_t* plan,
737  size_t* workspaceSize);
738 
757 HIPSPARSELT_EXPORT
758 hipsparseStatus_t hipsparseLtMatmulPlanInit(const hipsparseLtHandle_t* handle,
760  const hipsparseLtMatmulDescriptor_t* matmulDescr,
761  const hipsparseLtMatmulAlgSelection_t* algSelection);
762 
776 HIPSPARSELT_EXPORT
778 
779 /* matmul execution */
825 HIPSPARSELT_EXPORT
826 hipsparseStatus_t hipsparseLtMatmul(const hipsparseLtHandle_t* handle,
827  const hipsparseLtMatmulPlan_t* plan,
828  const void* alpha,
829  const void* d_A,
830  const void* d_B,
831  const void* beta,
832  const void* d_C,
833  void* d_D,
834  void* workspace,
835  hipStream_t* streams,
836  int32_t numStreams);
837 
892 HIPSPARSELT_EXPORT
893 hipsparseStatus_t hipsparseLtMatmulSearch(const hipsparseLtHandle_t* handle,
895  const void* alpha,
896  const void* d_A,
897  const void* d_B,
898  const void* beta,
899  const void* d_C,
900  void* d_D,
901  void* workspace,
902  hipStream_t* streams,
903  int32_t numStreams);
904 
905 /* helper */
906 // prune
933 HIPSPARSELT_EXPORT
934 hipsparseStatus_t hipsparseLtSpMMAPrune(const hipsparseLtHandle_t* handle,
935  const hipsparseLtMatmulDescriptor_t* matmulDescr,
936  const void* d_in,
937  void* d_out,
938  hipsparseLtPruneAlg_t pruneAlg,
939  hipStream_t stream);
940 
963 HIPSPARSELT_EXPORT
964 hipsparseStatus_t hipsparseLtSpMMAPruneCheck(const hipsparseLtHandle_t* handle,
965  const hipsparseLtMatmulDescriptor_t* matmulDescr,
966  const void* d_in,
967  int* d_valid,
968  hipStream_t stream);
969 
1001 HIPSPARSELT_EXPORT
1002 hipsparseStatus_t hipsparseLtSpMMAPrune2(const hipsparseLtHandle_t* handle,
1003  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1004  int isSparseA,
1005  hipsparseOperation_t op,
1006  const void* d_in,
1007  void* d_out,
1008  hipsparseLtPruneAlg_t pruneAlg,
1009  hipStream_t stream);
1010 
1037 HIPSPARSELT_EXPORT
1038 hipsparseStatus_t hipsparseLtSpMMAPruneCheck2(const hipsparseLtHandle_t* handle,
1039  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1040  int isSparseA,
1041  hipsparseOperation_t op,
1042  const void* d_in,
1043  int* d_valid,
1044  hipStream_t stream);
1045 
1046 // compression
1066 HIPSPARSELT_EXPORT
1067 hipsparseStatus_t hipsparseLtSpMMACompressedSize(const hipsparseLtHandle_t* handle,
1068  const hipsparseLtMatmulPlan_t* plan,
1069  size_t* compressedSize,
1070  size_t* compressBufferSize);
1071 
1097 HIPSPARSELT_EXPORT
1098 hipsparseStatus_t hipsparseLtSpMMACompress(const hipsparseLtHandle_t* handle,
1099  const hipsparseLtMatmulPlan_t* plan,
1100  const void* d_dense,
1101  void* d_compressed,
1102  void* d_compressBuffer,
1103  hipStream_t stream);
1104 
1125 HIPSPARSELT_EXPORT
1127  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1128  size_t* compressedSize,
1129  size_t* compressBufferSize);
1130 
1160 HIPSPARSELT_EXPORT
1161 hipsparseStatus_t hipsparseLtSpMMACompress2(const hipsparseLtHandle_t* handle,
1162  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1163  int isSparseA,
1164  hipsparseOperation_t op,
1165  const void* d_dense,
1166  void* d_compressed,
1167  void* d_compressBuffer,
1168  hipStream_t stream);
1169 
1170 #ifdef __cplusplus
1171 }
1172 #endif
1173 
1174 #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 hipsparseLtMatmulAlgSelectionDestroy(const hipsparseLtMatmulAlgSelection_t *algSelection)
Destroy 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