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

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

hipSPARSELt: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipsparselt/checkouts/develop/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-2024 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/library_types.h>
82 #else
83 #include <cuda_bf16.h>
84 #include <cuda_fp16.h>
85 #endif
86 
87 /* Opaque structures holding information */
88 // clang-format off
89 
90 #if defined(__HIP_PLATFORM_AMD__)
100 typedef struct hipsparseLtHandle_t {uint8_t data[11024];} hipsparseLtHandle_t;
101 
112 
122 
130 
140 typedef struct hipsparseLtMatmulPlan_t {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
141 #elif defined(__HIP_PLATFORM_NVIDIA__)
142 typedef __nv_bfloat16 hip_bfloat16;
143 typedef struct {uint8_t data[11024];} hipsparseLtHandle_t;
144 typedef struct {uint8_t data[11024];} hipsparseLtMatDescriptor_t;
145 typedef struct {uint8_t data[11024];} hipsparseLtMatmulDescriptor_t;
146 typedef struct {uint8_t data[11024];} hipsparseLtMatmulAlgSelection_t;
147 typedef struct {uint8_t data[11024];} hipsparseLtMatmulPlan_t;
148 #endif
149 
150 
151 /* Types definitions */
161 typedef enum
162 {
170 
179 typedef enum {
183 
191 typedef enum {
195 
201 typedef enum {
210 
218 typedef enum {
240 
247 typedef enum {
250 
258 typedef enum {
266 
273 typedef enum {
277 
284 typedef enum {
288 
289 // clang-format on
290 
291 #ifdef __cplusplus
292 extern "C" {
293 #endif
294 
303 HIPSPARSELT_EXPORT
305 
320 HIPSPARSELT_EXPORT
321 hipsparseStatus_t hipsparseLtGetVersion(const hipsparseLtHandle_t* handle, int* version);
322 
336 HIPSPARSELT_EXPORT
337 hipsparseStatus_t hipsparseLtGetProperty(hipLibraryPropertyType propertyType, int* value);
338 
339 HIPSPARSELT_EXPORT
340 hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char* rev);
341 
342 HIPSPARSELT_EXPORT
343 hipsparseStatus_t hipsparseLtGetArchName(char** archName);
344 
360 /* hipSPARSE initialization and management routines */
361 HIPSPARSELT_EXPORT
362 hipsparseStatus_t hipsparseLtInit(hipsparseLtHandle_t* handle);
363 
377 HIPSPARSELT_EXPORT
378 hipsparseStatus_t hipsparseLtDestroy(const hipsparseLtHandle_t* handle);
379 
380 /* matrix descriptor */
408 HIPSPARSELT_EXPORT
409 hipsparseStatus_t hipsparseLtDenseDescriptorInit(const hipsparseLtHandle_t* handle,
410  hipsparseLtMatDescriptor_t* matDescr,
411  int64_t rows,
412  int64_t cols,
413  int64_t ld,
414  uint32_t alignment,
415  hipDataType valueType,
416  hipsparseOrder_t order);
417 
448 HIPSPARSELT_EXPORT
450  hipsparseLtMatDescriptor_t* matDescr,
451  int64_t rows,
452  int64_t cols,
453  int64_t ld,
454  uint32_t alignment,
455  hipDataType valueType,
456  hipsparseOrder_t order,
457  hipsparseLtSparsity_t sparsity);
458 
472 HIPSPARSELT_EXPORT
474 
496 HIPSPARSELT_EXPORT
497 hipsparseStatus_t hipsparseLtMatDescSetAttribute(const hipsparseLtHandle_t* handle,
498  hipsparseLtMatDescriptor_t* matDescr,
499  hipsparseLtMatDescAttribute_t matAttribute,
500  const void* data,
501  size_t dataSize);
502 
524 HIPSPARSELT_EXPORT
525 hipsparseStatus_t hipsparseLtMatDescGetAttribute(const hipsparseLtHandle_t* handle,
526  const hipsparseLtMatDescriptor_t* matDescr,
527  hipsparseLtMatDescAttribute_t matAttribute,
528  void* data,
529  size_t dataSize);
530 
531 /* matmul descriptor */
561 HIPSPARSELT_EXPORT
562 hipsparseStatus_t hipsparseLtMatmulDescriptorInit(const hipsparseLtHandle_t* handle,
563  hipsparseLtMatmulDescriptor_t* matmulDescr,
564  hipsparseOperation_t opA,
565  hipsparseOperation_t opB,
566  const hipsparseLtMatDescriptor_t* matA,
567  const hipsparseLtMatDescriptor_t* matB,
568  const hipsparseLtMatDescriptor_t* matC,
569  const hipsparseLtMatDescriptor_t* matD,
570  hipsparseLtComputetype_t computeType);
571 
594 HIPSPARSELT_EXPORT
595 hipsparseStatus_t
597  hipsparseLtMatmulDescriptor_t* matmulDescr,
598  hipsparseLtMatmulDescAttribute_t matmulAttribute,
599  const void* data,
600  size_t dataSize);
601 
624 HIPSPARSELT_EXPORT
625 hipsparseStatus_t
627  const hipsparseLtMatmulDescriptor_t* matmulDescr,
628  hipsparseLtMatmulDescAttribute_t matmulAttribute,
629  void* data,
630  size_t dataSize);
631 
632 /* algorithm selection */
650 HIPSPARSELT_EXPORT
651 hipsparseStatus_t
653  hipsparseLtMatmulAlgSelection_t* algSelection,
654  const hipsparseLtMatmulDescriptor_t* matmulDescr,
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
936 HIPSPARSELT_EXPORT
937 hipsparseStatus_t hipsparseLtSpMMAPrune(const hipsparseLtHandle_t* handle,
938  const hipsparseLtMatmulDescriptor_t* matmulDescr,
939  const void* d_in,
940  void* d_out,
941  hipsparseLtPruneAlg_t pruneAlg,
942  hipStream_t stream);
943 
966 HIPSPARSELT_EXPORT
967 hipsparseStatus_t hipsparseLtSpMMAPruneCheck(const hipsparseLtHandle_t* handle,
968  const hipsparseLtMatmulDescriptor_t* matmulDescr,
969  const void* d_in,
970  int* d_valid,
971  hipStream_t stream);
972 
1007 HIPSPARSELT_EXPORT
1008 hipsparseStatus_t hipsparseLtSpMMAPrune2(const hipsparseLtHandle_t* handle,
1009  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1010  int isSparseA,
1011  hipsparseOperation_t op,
1012  const void* d_in,
1013  void* d_out,
1014  hipsparseLtPruneAlg_t pruneAlg,
1015  hipStream_t stream);
1016 
1043 HIPSPARSELT_EXPORT
1044 hipsparseStatus_t hipsparseLtSpMMAPruneCheck2(const hipsparseLtHandle_t* handle,
1045  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1046  int isSparseA,
1047  hipsparseOperation_t op,
1048  const void* d_in,
1049  int* d_valid,
1050  hipStream_t stream);
1051 
1052 // compression
1072 HIPSPARSELT_EXPORT
1073 hipsparseStatus_t hipsparseLtSpMMACompressedSize(const hipsparseLtHandle_t* handle,
1074  const hipsparseLtMatmulPlan_t* plan,
1075  size_t* compressedSize,
1076  size_t* compressBufferSize);
1077 
1103 HIPSPARSELT_EXPORT
1104 hipsparseStatus_t hipsparseLtSpMMACompress(const hipsparseLtHandle_t* handle,
1105  const hipsparseLtMatmulPlan_t* plan,
1106  const void* d_dense,
1107  void* d_compressed,
1108  void* d_compressBuffer,
1109  hipStream_t stream);
1110 
1131 HIPSPARSELT_EXPORT
1133  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1134  size_t* compressedSize,
1135  size_t* compressBufferSize);
1136 
1166 HIPSPARSELT_EXPORT
1167 hipsparseStatus_t hipsparseLtSpMMACompress2(const hipsparseLtHandle_t* handle,
1168  const hipsparseLtMatDescriptor_t* sparseMatDescr,
1169  int isSparseA,
1170  hipsparseOperation_t op,
1171  const void* d_dense,
1172  void* d_compressed,
1173  void* d_compressBuffer,
1174  hipStream_t stream);
1175 
1176 #ifdef __cplusplus
1177 }
1178 #endif
1179 
1180 #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:179
hipsparseLtMatmulAlg_t
Specify the algorithm for matrix-matrix multiplication.
Definition: hipsparselt.h:247
hipsparseLtMatmulAlgAttribute_t
Specify the matrix multiplication algorithm attributes.
Definition: hipsparselt.h:258
hipsparseLtComputetype_t
Specify the compute precision modes of the matrix.
Definition: hipsparselt.h:201
hipsparseLtSplitKMode_t
Specify the split k mode value.
Definition: hipsparselt.h:284
hipsparseLtMatmulDescAttribute_t
Specify the additional attributes of a matrix multiplication descriptor.
Definition: hipsparselt.h:218
hipsparseLtDatatype_t
List of hipsparselt data types.
Definition: hipsparselt.h:162
hipsparseLtPruneAlg_t
Specify the pruning algorithm to apply to the structured matrix before the compression.
Definition: hipsparselt.h:273
hipsparseLtMatDescAttribute_t
Specify the additional attributes of a matrix descriptor.
Definition: hipsparselt.h:191
@ HIPSPARSELT_SPARSITY_50_PERCENT
Definition: hipsparselt.h:180
@ HIPSPARSELT_MATMUL_ALG_DEFAULT
Definition: hipsparselt.h:248
@ HIPSPARSELT_MATMUL_SPLIT_K
Definition: hipsparselt.h:262
@ HIPSPARSELT_MATMUL_SPLIT_K_BUFFERS
Definition: hipsparselt.h:264
@ HIPSPARSELT_MATMUL_SEARCH_ITERATIONS
Definition: hipsparselt.h:261
@ HIPSPARSELT_MATMUL_SPLIT_K_MODE
Definition: hipsparselt.h:263
@ HIPSPARSELT_MATMUL_ALG_CONFIG_ID
Definition: hipsparselt.h:259
@ HIPSPARSELT_MATMUL_ALG_CONFIG_MAX_ID
Definition: hipsparselt.h:260
@ HIPSPARSELT_COMPUTE_32F
Definition: hipsparselt.h:204
@ HIPSPARSELT_COMPUTE_TF32_FAST
Definition: hipsparselt.h:207
@ HIPSPARSELT_COMPUTE_TF32
Definition: hipsparselt.h:205
@ HIPSPARSELT_COMPUTE_32I
Definition: hipsparselt.h:203
@ HIPSPARSELT_COMPUTE_16F
Definition: hipsparselt.h:202
@ HIPSPARSELT_SPLIT_K_MODE_TWO_KERNELS
Definition: hipsparselt.h:286
@ HIPSPARSELT_SPLIT_K_MODE_ONE_KERNEL
Definition: hipsparselt.h:285
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_UPPERBOUND
Definition: hipsparselt.h:220
@ HIPSPARSELT_MATMUL_BIAS_STRIDE
Definition: hipsparselt.h:226
@ HIPSPARSELT_MATMUL_BIAS_POINTER
Definition: hipsparselt.h:227
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU
Definition: hipsparselt.h:229
@ HIPSPARSELT_MATMUL_BIAS_TYPE
Definition: hipsparselt.h:235
@ HIPSPARSELT_MATMUL_ACTIVATION_LEAKYRELU_ALPHA
Definition: hipsparselt.h:230
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_BETA
Definition: hipsparselt.h:234
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU_SCALING
Definition: hipsparselt.h:223
@ HIPSPARSELT_MATMUL_ALPHA_VECTOR_SCALING
Definition: hipsparselt.h:224
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH
Definition: hipsparselt.h:232
@ HIPSPARSELT_MATMUL_ACTIVATION_SIGMOID
Definition: hipsparselt.h:231
@ HIPSPARSELT_MATMUL_ACTIVATION_TANH_ALPHA
Definition: hipsparselt.h:233
@ HIPSPARSELT_MATMUL_BETA_VECTOR_SCALING
Definition: hipsparselt.h:225
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU
Definition: hipsparselt.h:219
@ HIPSPARSELT_MATMUL_ACTIVATION_GELU
Definition: hipsparselt.h:222
@ HIPSPARSELT_MATMUL_ACTIVATION_ABS
Definition: hipsparselt.h:228
@ HIPSPARSELT_MATMUL_ACTIVATION_RELU_THRESHOLD
Definition: hipsparselt.h:221
@ HIPSPARSELT_R_8F
Definition: hipsparselt.h:167
@ HIPSPARSELT_R_32F
Definition: hipsparselt.h:164
@ HIPSPARSELT_R_16F
Definition: hipsparselt.h:163
@ HIPSPARSELT_R_16BF
Definition: hipsparselt.h:166
@ HIPSPARSELT_R_8I
Definition: hipsparselt.h:165
@ HIPSPARSELT_R_8BF
Definition: hipsparselt.h:168
@ HIPSPARSELT_PRUNE_SPMMA_TILE
Definition: hipsparselt.h:274
@ HIPSPARSELT_PRUNE_SPMMA_STRIP
Definition: hipsparselt.h:275
@ HIPSPARSELT_MAT_BATCH_STRIDE
Definition: hipsparselt.h:193
@ HIPSPARSELT_MAT_NUM_BATCHES
Definition: hipsparselt.h:192
hipsparseStatus_t hipsparseLtGetGitRevision(hipsparseLtHandle_t handle, char *rev)
hipsparseStatus_t hipsparseLtGetArchName(char **archName)
Handle to the hipSPARSELt library context queue.
Definition: hipsparselt.h:100
uint8_t data[11024]
Definition: hipsparselt.h:100
Descriptor of the matrix.
Definition: hipsparselt.h:111
uint8_t data[11024]
Definition: hipsparselt.h:111
Descriptor of the matrix multiplication algorithm.
Definition: hipsparselt.h:129
uint8_t data[11024]
Definition: hipsparselt.h:129
Descriptor of the matrix multiplication operation.
Definition: hipsparselt.h:121
uint8_t data[11024]
Definition: hipsparselt.h:121
Descriptor of the matrix multiplication execution plan.
Definition: hipsparselt.h:140
uint8_t data[11024]
Definition: hipsparselt.h:140