imate
C++/CUDA Reference
cublas_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_CUBLAS_SYMBOLS_H_
13 #define _CUDA_DYNAMIC_LOADING_CUBLAS_SYMBOLS_H_
14 
15 
16 // =======
17 // Headers
18 // =======
19 
20 #include <string> // std::string
21 #include "./cublas_types.h" // cublasSgemv_type, cublasDgemv_type,
22  // cublasScopy_type, cublasDcopy_type,
23  // cublasSaxpy_type, cublasDaxpy_type,
24  // cublasSdot_type, cublasDdot_type,
25  // cublasSnrm2_type, cublasDnrm2_type,
26  // cublasSscal_type, cublasDscal_type
27  // cublasHandle_t, cublasStatus_t
28 
29 // ==============
30 // cublas Symbols
31 // ==============
32 
46 
48 {
49  public:
50  // Methods
51  static std::string get_lib_name();
52 
53  // Data
68 };
69 
70 #endif // _CUDA_DYNAMIC_LOADING_CUBLAS_SYMBOLS_H_
A static container to store symbols of loaded cublas library.
static cublasSaxpy_type cublasSaxpy
static cublasDdot_type cublasDdot
static cublasScopy_type cublasScopy
static cublasSscal_type cublasSscal
static cublasDaxpy_type cublasDaxpy
static cublasCreate_type cublasCreate
static cublasDestroy_type cublasDestroy
static cublasDnrm2_type cublasDnrm2
static cublasSdot_type cublasSdot
static cublasDcopy_type cublasDcopy
static cublasSnrm2_type cublasSnrm2
static cublasDscal_type cublasDscal
static cublasSgemv_type cublasSgemv
static std::string get_lib_name()
Returns the name of cublas shared library.
static cublasDgemv_type cublasDgemv
cublasStatus_t(* cublasDestroy_type)(cublasHandle_t handle)
Definition: cublas_types.h:32
cublasStatus_t(* cublasDgemv_type)(cublasHandle_t handle, cublasOperation_t trans, int m, int n, const double *alpha, const double *A, int lda, const double *x, int incx, const double *beta, double *y, int incy)
Definition: cublas_types.h:50
cublasStatus_t(* cublasDcopy_type)(cublasHandle_t handle, int n, const double *x, int incx, double *y, int incy)
Definition: cublas_types.h:73
cublasStatus_t(* cublasDaxpy_type)(cublasHandle_t handle, int n, const double *alpha, const double *x, int incx, double *y, int incy)
Definition: cublas_types.h:91
cublasStatus_t(* cublasDscal_type)(cublasHandle_t handle, int n, const double *alpha, double *x, int incx)
Definition: cublas_types.h:145
cublasStatus_t(* cublasSaxpy_type)(cublasHandle_t handle, int n, const float *alpha, const float *x, int incx, float *y, int incy)
Definition: cublas_types.h:81
cublasStatus_t(* cublasCreate_type)(cublasHandle_t *handle)
Definition: cublas_types.h:29
cublasStatus_t(* cublasSscal_type)(cublasHandle_t handle, int n, const float *alpha, float *x, int incx)
Definition: cublas_types.h:137
cublasStatus_t(* cublasSgemv_type)(cublasHandle_t handle, cublasOperation_t trans, int m, int n, const float *alpha, const float *A, int lda, const float *x, int incx, const float *beta, float *y, int incy)
Definition: cublas_types.h:35
cublasStatus_t(* cublasSdot_type)(cublasHandle_t handle, int n, const float *x, int incx, const float *y, int incy, float *result)
Definition: cublas_types.h:101
cublasStatus_t(* cublasScopy_type)(cublasHandle_t handle, int n, const float *x, int incx, float *y, int incy)
Definition: cublas_types.h:65
cublasStatus_t(* cublasSnrm2_type)(cublasHandle_t handle, int n, const float *x, int incx, float *result)
Definition: cublas_types.h:121
cublasStatus_t(* cublasDdot_type)(cublasHandle_t handle, int n, const double *x, int incx, const double *y, int incy, double *result)
Definition: cublas_types.h:111
cublasStatus_t(* cublasDnrm2_type)(cublasHandle_t handle, int n, const double *x, int incx, double *result)
Definition: cublas_types.h:129