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

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

hipSPARSELt: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/docs-7.0.0/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 #endif
87 
88 /* Opaque structures holding information */
89 // clang-format off
90 
91 #if defined(__HIP_PLATFORM_AMD__)
101 typedef struct hipsparseLtHandle_t {uint8_t data[11024];} hipsparseLtHandle_t;
102 
113 
123 
131 
141 typedef struct hipsparseLtMatmulPlan_t {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
142 #elif defined(__HIP_PLATFORM_NVIDIA__)
143 typedef __nv_bfloat16 hip_bfloat16;
144 typedef struct {uint8_t data[11024];} hipsparseLtHandle_t;
145 typedef struct {uint8_t data[11024];} hipsparseLtMatDescriptor_t;
146 typedef struct {uint8_t data[11024];} hipsparseLtMatmulDescriptor_t;
147 typedef struct {uint8_t data[11024];} hipsparseLtMatmulAlgSelection_t;
148 typedef struct {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
149 #endif
150 
159 typedef enum {
163 
171 typedef enum {
175 
181 typedef enum {
190 
198 typedef enum {
221 
228 typedef enum {
231 
239 typedef enum {
247 
254 typedef enum {
258 
265 typedef enum {
269 
270 // clang-format on
271 
272 #ifdef __cplusplus
273 extern "C" {
274 #endif
275 
284 HIPSPARSELT_EXPORT
286 
301 HIPSPARSELT_EXPORT
302 hipsparseStatus_t hipsparseLtGetVersion(const hipsparseLtHandle_t* handle, int* version);
303 
317 HIPSPARSELT_EXPORT
318 hipsparseStatus_t hipsparseLtGetProperty(hipLibraryPropertyType propertyType, int* value);
319 
320 HIPSPARSELT_EXPORT
321 hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char* rev);
322 
323 HIPSPARSELT_EXPORT
324 hipsparseStatus_t hipsparseLtGetArchName(char** archName);
325 
341 /* hipSPARSE initialization and management routines */
342 HIPSPARSELT_EXPORT
343 hipsparseStatus_t hipsparseLtInit(hipsparseLtHandle_t* handle);
344 
358 HIPSPARSELT_EXPORT
359 hipsparseStatus_t hipsparseLtDestroy(const hipsparseLtHandle_t* handle);
360 
361 /* matrix descriptor */
389 HIPSPARSELT_EXPORT
390 hipsparseStatus_t hipsparseLtDenseDescriptorInit(const hipsparseLtHandle_t* handle,
391  hipsparseLtMatDescriptor_t* matDescr,
392  int64_t rows,
393  int64_t cols,
394  int64_t ld,
395  uint32_t alignment,
396  hipDataType valueType,
397  hipsparseOrder_t order);
398 
429 HIPSPARSELT_EXPORT
431  hipsparseLtMatDescriptor_t* matDescr,
432  int64_t rows,
433  int64_t cols,
434  int64_t ld,
435  uint32_t alignment,
436  hipDataType valueType,
437  hipsparseOrder_t order,
438  hipsparseLtSparsity_t sparsity);
439 
453 HIPSPARSELT_EXPORT
455 
477 HIPSPARSELT_EXPORT
478 hipsparseStatus_t hipsparseLtMatDescSetAttribute(const hipsparseLtHandle_t* handle,
479  hipsparseLtMatDescriptor_t* matDescr,
480  hipsparseLtMatDescAttribute_t matAttribute,
481  const void* data,
482  size_t dataSize);
483 
505 HIPSPARSELT_EXPORT
506 hipsparseStatus_t hipsparseLtMatDescGetAttribute(const hipsparseLtHandle_t* handle,
507  const hipsparseLtMatDescriptor_t* matDescr,
508  hipsparseLtMatDescAttribute_t matAttribute,
509  void* data,
510  size_t dataSize);
511 
512 /* matmul descriptor */
542 HIPSPARSELT_EXPORT
543 hipsparseStatus_t hipsparseLtMatmulDescriptorInit(const hipsparseLtHandle_t* handle,
544  hipsparseLtMatmulDescriptor_t* matmulDescr,
545  hipsparseOperation_t opA,
546  hipsparseOperation_t opB,
547  const hipsparseLtMatDescriptor_t* matA,
548  const hipsparseLtMatDescriptor_t* matB,
549  const hipsparseLtMatDescriptor_t* matC,
550  const hipsparseLtMatDescriptor_t* matD,
551  hipsparseLtComputetype_t computeType);
552 
575 HIPSPARSELT_EXPORT
576 hipsparseStatus_t
578  hipsparseLtMatmulDescriptor_t* matmulDescr,
579  hipsparseLtMatmulDescAttribute_t matmulAttribute,
580  const void* data,
581  size_t dataSize);
582 
605 HIPSPARSELT_EXPORT
606 hipsparseStatus_t
608  const hipsparseLtMatmulDescriptor_t* matmulDescr,
609  hipsparseLtMatmulDescAttribute_t matmulAttribute,
610  void* data,
611  size_t dataSize);
612 
613 /* algorithm selection */
631 HIPSPARSELT_EXPORT
632 hipsparseStatus_t
634  hipsparseLtMatmulAlgSelection_t* algSelection,
635  const hipsparseLtMatmulDescriptor_t* matmulDescr,
637 
660 HIPSPARSELT_EXPORT
662  hipsparseLtMatmulAlgSelection_t* algSelection,
664  const void* data,
665  size_t dataSize);
666 
690 HIPSPARSELT_EXPORT
691 hipsparseStatus_t
693  const hipsparseLtMatmulAlgSelection_t* algSelection,
695  void* data,
696  size_t dataSize);
697 
698 /* matmul plan */
715 HIPSPARSELT_EXPORT
716 hipsparseStatus_t hipsparseLtMatmulGetWorkspace(const hipsparseLtHandle_t* handle,
717  const hipsparseLtMatmulPlan_t* plan,
718  size_t* workspaceSize);
719 
738 HIPSPARSELT_EXPORT
739 hipsparseStatus_t hipsparseLtMatmulPlanInit(const hipsparseLtHandle_t* handle,
741  const hipsparseLtMatmulDescriptor_t* matmulDescr,
742  const hipsparseLtMatmulAlgSelection_t* algSelection);
743 
757 HIPSPARSELT_EXPORT
759 
760 /* matmul execution */
806 HIPSPARSELT_EXPORT
807 hipsparseStatus_t hipsparseLtMatmul(const hipsparseLtHandle_t* handle,
808  const hipsparseLtMatmulPlan_t* plan,
809  const void* alpha,
810  const void* d_A,
811  const void* d_B,
812  const void* beta,
813  const void* d_C,
814  void* d_D,
815  void* workspace,
816  hipStream_t* streams,
817  int32_t numStreams);
818 
873 HIPSPARSELT_EXPORT
874 hipsparseStatus_t hipsparseLtMatmulSearch(const hipsparseLtHandle_t* handle,
876  const void* alpha,
877  const void* d_A,
878  const void* d_B,
879  const void* beta,
880  const void* d_C,
881  void* d_D,
882  void* workspace,
883  hipStream_t* streams,
884  int32_t numStreams);
885 
886 /* helper */
887 // 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 
988 HIPSPARSELT_EXPORT
989 hipsparseStatus_t hipsparseLtSpMMAPrune2(const hipsparseLtHandle_t* handle,
990  const hipsparseLtMatDescriptor_t* sparseMatDescr,
991  int isSparseA,
992  hipsparseOperation_t op,
993  const void* d_in,
994  void* d_out,
995  hipsparseLtPruneAlg_t pruneAlg,
996  hipStream_t stream);
997 
1024 HIPSPARSELT_EXPORT
1025 hipsparseStatus_t hipsparseLtSpMMAPruneCheck2(const hipsparseLtHandle_t* handle,
1026  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1027  int isSparseA,
1028  hipsparseOperation_t op,
1029  const void* d_in,
1030  int* d_valid,
1031  hipStream_t stream);
1032 
1033 // compression
1053 HIPSPARSELT_EXPORT
1054 hipsparseStatus_t hipsparseLtSpMMACompressedSize(const hipsparseLtHandle_t* handle,
1055  const hipsparseLtMatmulPlan_t* plan,
1056  size_t* compressedSize,
1057  size_t* compressBufferSize);
1058 
1084 HIPSPARSELT_EXPORT
1085 hipsparseStatus_t hipsparseLtSpMMACompress(const hipsparseLtHandle_t* handle,
1086  const hipsparseLtMatmulPlan_t* plan,
1087  const void* d_dense,
1088  void* d_compressed,
1089  void* d_compressBuffer,
1090  hipStream_t stream);
1091 
1112 HIPSPARSELT_EXPORT
1114  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1115  size_t* compressedSize,
1116  size_t* compressBufferSize);
1117 
1147 HIPSPARSELT_EXPORT
1148 hipsparseStatus_t hipsparseLtSpMMACompress2(const hipsparseLtHandle_t* handle,
1149  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1150  int isSparseA,
1151  hipsparseOperation_t op,
1152  const void* d_dense,
1153  void* d_compressed,
1154  void* d_compressBuffer,
1155  hipStream_t stream);
1156 
1157 #ifdef __cplusplus
1158 }
1159 #endif
1160 
1161 #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)
Purnes 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)
compresses 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)
checks 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)
Purnes 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)
compresses 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)
checks 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)
Retrive 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)
Retrive 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 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 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 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 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 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:159
hipsparseLtMatmulAlg_t
Specify the algorithm for matrix-matrix multiplication.
Definition: hipsparselt.h:228
hipsparseLtMatmulAlgAttribute_t
Specify the matrix multiplication algorithm attributes.
Definition: hipsparselt.h:239
hipsparseLtComputetype_t
Specify the compute precision modes of the matrix.
Definition: hipsparselt.h:181
hipsparseLtSplitKMode_t
Specify the split k mode value.
Definition: hipsparselt.h:265
hipsparseLtMatmulDescAttribute_t
Specify the additional attributes of a matrix multiplication descriptor.
Definition: hipsparselt.h:198
hipsparseLtPruneAlg_t
Specify the pruning algorithm to apply to the structured matrix before the compression.
Definition: hipsparselt.h:254
hipsparseLtMatDescAttribute_t
Specify the additional attributes of a matrix descriptor.
Definition: hipsparselt.h:171
@ HIPSPARSELT_SPARSITY_50_PERCENT
Definition: hipsparselt.h:160
@ HIPSPARSELT_MATMUL_ALG_DEFAULT
Definition: hipsparselt.h:229
@ HIPSPARSELT_MATMUL_SPLIT_K
Definition: hipsparselt.h:243
@ HIPSPARSELT_MATMUL_SPLIT_K_BUFFERS
Definition: hipsparselt.h:245
@ HIPSPARSELT_MATMUL_SEARCH_ITERATIONS
Definition: hipsparselt.h:242
@ HIPSPARSELT_MATMUL_SPLIT_K_MODE
Definition: hipsparselt.h:244
@ HIPSPARSELT_MATMUL_ALG_CONFIG_ID
Definition: hipsparselt.h:240
@ HIPSPARSELT_MATMUL_ALG_CONFIG_MAX_ID
Definition: hipsparselt.h:241
@ HIPSPARSELT_COMPUTE_32F
Definition: hipsparselt.h:184
@ HIPSPARSELT_COMPUTE_TF32_FAST
Definition: hipsparselt.h:187
@ HIPSPARSELT_COMPUTE_TF32
Definition: hipsparselt.h:185
@ HIPSPARSELT_COMPUTE_32I
Definition: hipsparselt.h:183
@ HIPSPARSELT_COMPUTE_16F
Definition: hipsparselt.h:182
@ HIPSPARSELT_SPLIT_K_MODE_TWO_KERNELS
Definition: hipsparselt.h:267
@ HIPSPARSELT_SPLIT_K_MODE_ONE_KERNEL
Definition: hipsparselt.h:266
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_UPPERBOUND
Definition: hipsparselt.h:200
@ HIPSPARSELT_MATMUL_BIAS_STRIDE
Definition: hipsparselt.h:206
@ HIPSPARSELT_MATMUL_BIAS_POINTER
Definition: hipsparselt.h:207
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU
Definition: hipsparselt.h:209
@ HIPSPARSELT_MATMUL_BIAS_TYPE
Definition: hipsparselt.h:215
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU_ALPHA
Definition: hipsparselt.h:210
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_BETA
Definition: hipsparselt.h:214
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU_SCALING
Definition: hipsparselt.h:203
@ HIPSPARSELT_MATMUL_ALPHA_VECTOR_SCALING
Definition: hipsparselt.h:204
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH
Definition: hipsparselt.h:212
@ HIPSPARSELT_MATMUL_ACTIVATION_SIGMOID
Definition: hipsparselt.h:211
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_ALPHA
Definition: hipsparselt.h:213
@ HIPSPARSELT_MATMUL_BETA_VECTOR_SCALING
Definition: hipsparselt.h:205
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU
Definition: hipsparselt.h:199
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU
Definition: hipsparselt.h:202
@ HIPSPARSELT_MATMUL_ACTIVATION_ABS
Definition: hipsparselt.h:208
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_THRESHOLD
Definition: hipsparselt.h:201
@ HIPSPARSELT_MATMUL_SPARSE_MAT_POINTER
Definition: hipsparselt.h:219
@ HIPSPARSELT_PRUNE_SPMMA_TILE
Definition: hipsparselt.h:255
@ HIPSPARSELT_PRUNE_SPMMA_STRIP
Definition: hipsparselt.h:256
@ HIPSPARSELT_MAT_BATCH_STRIDE
Definition: hipsparselt.h:173
@ HIPSPARSELT_MAT_NUM_BATCHES
Definition: hipsparselt.h:172
hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char *rev)
hipsparseStatus_t hipsparseLtGetArchName(char **archName)
Handle to the hipSPARSELt library context queue.
Definition: hipsparselt.h:101
uint8_t data[11024]
Definition: hipsparselt.h:101
Descriptor of the matrix.
Definition: hipsparselt.h:112
uint8_t data[11024]
Definition: hipsparselt.h:112
Descriptor of the matrix multiplication algorithm.
Definition: hipsparselt.h:130
uint8_t data[11024]
Definition: hipsparselt.h:130
Descriptor of the matrix multiplication operation.
Definition: hipsparselt.h:122
uint8_t data[11024]
Definition: hipsparselt.h:122
Descriptor of the matrix multiplication execution plan.
Definition: hipsparselt.h:141
uint8_t data[11024]
Definition: hipsparselt.h:141