12 #ifndef _CUDA_DYNAMIC_LOADING_CUSPARSE_TYPES_H_
13 #define _CUDA_DYNAMIC_LOADING_CUSPARSE_TYPES_H_
29 #if CUSPARSE_VER_MAJOR < 12
32 #define CUSPARSE_SPMV_ALG_DEFAULT CUSPARSE_MV_ALG_DEFAULT
33 #define cusparseConstSpMatDescr_t cusparseSpMatDescr_t
34 #define cusparseConstDnVecDescr_t cusparseDnVecDescr_t
50 cusparseSpMatDescr_t* spMatDescr,
57 cusparseIndexType_t csrRowOffsetsType,
58 cusparseIndexType_t csrColIndType,
59 cusparseIndexBase_t idxBase,
60 cudaDataType valueType);
64 cusparseDnVecDescr_t* dnVecDescr,
67 cudaDataType valueType);
79 cusparseHandle_t handle,
80 cusparseOperation_t opA,
85 cusparseDnVecDescr_t vecY,
86 cudaDataType computeType,
87 cusparseSpMVAlg_t alg,
92 cusparseHandle_t handle,
93 cusparseOperation_t opA,
98 cusparseDnVecDescr_t vecY,
99 cudaDataType computeType,
100 cusparseSpMVAlg_t alg,
101 void* externalBuffer);
cusparseStatus_t(* cusparseSpMV_type)(cusparseHandle_t handle, cusparseOperation_t opA, const void *alpha, cusparseConstSpMatDescr_t matA, cusparseConstDnVecDescr_t vecX, const void *beta, cusparseDnVecDescr_t vecY, cudaDataType computeType, cusparseSpMVAlg_t alg, void *externalBuffer)
cusparseStatus_t(* cusparseCreate_type)(cusparseHandle_t *handle)
cusparseStatus_t(* cusparseDestroy_type)(cusparseHandle_t handle)
cusparseStatus_t(* cusparseCreateDnVec_type)(cusparseDnVecDescr_t *dnVecDescr, int64_t size, void *values, cudaDataType valueType)
#define cusparseConstDnVecDescr_t
cusparseStatus_t(* cusparseDestroyDnVec_type)(cusparseConstDnVecDescr_t dnVecDescr)
#define cusparseConstSpMatDescr_t
cusparseStatus_t(* cusparseSpMV_bufferSize_type)(cusparseHandle_t handle, cusparseOperation_t opA, const void *alpha, cusparseConstSpMatDescr_t matA, cusparseConstDnVecDescr_t vecX, const void *beta, cusparseDnVecDescr_t vecY, cudaDataType computeType, cusparseSpMVAlg_t alg, size_t *bufferSize)
cusparseStatus_t(* cusparseDestroySpMat_type)(cusparseConstSpMatDescr_t spMatDescr)
cusparseStatus_t(* cusparseCreateCsr_type)(cusparseSpMatDescr_t *spMatDescr, int64_t rows, int64_t cols, int64_t nnz, void *csrRowOffsets, void *csrColInd, void *csrValues, cusparseIndexType_t csrRowOffsetsType, cusparseIndexType_t csrColIndType, cusparseIndexBase_t idxBase, cudaDataType valueType)