imate
C++/CUDA Reference
cusparse_symbols.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3  * SPDX-License-Identifier: BSD-3-Clause
4  * SPDX-FileType: SOURCE
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the license found in the LICENSE.txt file in the root
8  * directory of this source tree.
9  */
10 
11 
12 #ifndef _CUDA_DYNAMIC_LOADING_CUSPARSE_SYMBOLS_H_
13 #define _CUDA_DYNAMIC_LOADING_CUSPARSE_SYMBOLS_H_
14 
15 
16 // =======
17 // Headers
18 // =======
19 
20 #include <string> // std::string
21 #include "./cusparse_types.h" // cusparseCreateCsr_type,
22  // cusparseCreateDnVec_type,
23  // cusparseDestroySpMat_type,
24  // cusparseDestroyDnVec_type,
25  // cusparseSpMV_bufferSize_type,
26  // cusparseSpMV_type
27 
28 
29 // ================
30 // cusparse Symbols
31 // ================
32 
46 
48 {
49  public:
50  // Methods
51  static std::string get_lib_name();
52 
53  // Data
62 };
63 
64 #endif // _CUDA_DYNAMIC_LOADING_CUSPARSE_SYMBOLS_H_
A static container to store symbols of loaded cusparse library.
static cusparseCreateDnVec_type cusparseCreateDnVec
static cusparseCreateCsr_type cusparseCreateCsr
static cusparseDestroyDnVec_type cusparseDestroyDnVec
static cusparseSpMV_type cusparseSpMV
static cusparseDestroy_type cusparseDestroy
static std::string get_lib_name()
Returns the name of cusparse shared library.
static cusparseSpMV_bufferSize_type cusparseSpMV_bufferSize
static cusparseDestroySpMat_type cusparseDestroySpMat
static cusparseCreate_type cusparseCreate
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)
cusparseStatus_t(* cusparseDestroyDnVec_type)(cusparseConstDnVecDescr_t dnVecDescr)
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)