imate
C++/CUDA Reference
cudart_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_CUDART_SYMBOLS_H_
13 #define _CUDA_DYNAMIC_LOADING_CUDART_SYMBOLS_H_
14 
15 
16 // =======
17 // Headers
18 // =======
19 
20 #include <string> // std::string
21 #include "./cudart_types.h" // cudaEventCreate, cudaEventDestroy,
22  // cudaEventElapsedTime, cudaEventRecord,
23  // cudaEventSynchronize,cudaGetDevice,
24  // cudaGetDeviceCount, cudaGetDeviceProperties,
25  // cudaFree, cudaMalloc, cudaMemcpy,
26  // cudaSetDevice
27 
28 
29 // ==============
30 // cudart Symbols
31 // ==============
32 
46 
48 {
49  public:
50  // Methods
51  static std::string get_lib_name();
52 
53  // Data
69 };
70 
71 
72 #endif // _CUDA_DYNAMIC_LOADING_CUDART_SYMBOLS_H_
A static container to store symbols of loaded cudart library.
static cudaEventCreate_type cudaEventCreate
static cudaEventSynchronize_type cudaEventSynchronize
static __cudaRegisterFatBinaryEnd_type __cudaRegisterFatBinaryEnd
static __cudaUnregisterFatBinary_type __cudaUnregisterFatBinary
static cudaMalloc_type cudaMalloc
static cudaMemcpy_type cudaMemcpy
static __cudaRegisterFatBinary_type __cudaRegisterFatBinary
static cudaGetDevice_type cudaGetDevice
static cudaEventRecord_type cudaEventRecord
static cudaEventDestroy_type cudaEventDestroy
static cudaGetDeviceCount_type cudaGetDeviceCount
static std::string get_lib_name()
Returns the name of cudart shared library.
static cudaSetDevice_type cudaSetDevice
static cudaFree_type cudaFree
static cudaEventElapsedTime_type cudaEventElapsedTime
static cudaGetDeviceProperties_type cudaGetDeviceProperties
void(* __cudaRegisterFatBinaryEnd_type)(void **fatCubinHandle)
Definition: cudart_types.h:45
cudaError_t(* cudaGetDeviceCount_type)(int *count)
Definition: cudart_types.h:36
cudaError_t(* cudaEventSynchronize_type)(cudaEvent_t event)
Definition: cudart_types.h:34
cudaError_t(* cudaGetDevice_type)(int *device)
Definition: cudart_types.h:35
cudaError_t(* cudaSetDevice_type)(int device)
Definition: cudart_types.h:43
cudaError_t(* cudaEventRecord_type)(cudaEvent_t event, cudaStream_t stream)
Definition: cudart_types.h:32
cudaError_t(* cudaFree_type)(void *devPtr)
Definition: cudart_types.h:39
cudaError_t(* cudaGetDeviceProperties_type)(cudaDeviceProp *prop, int device)
Definition: cudart_types.h:37
void **(* __cudaRegisterFatBinary_type)(void *fatCubin)
Definition: cudart_types.h:44
void(* __cudaUnregisterFatBinary_type)(void **fatCubinHandle)
Definition: cudart_types.h:46
cudaError_t(* cudaEventDestroy_type)(cudaEvent_t event)
Definition: cudart_types.h:29
cudaError_t(* cudaEventCreate_type)(cudaEvent_t *event)
Definition: cudart_types.h:28
cudaError_t(* cudaMemcpy_type)(void *dst, const void *src, size_t count, cudaMemcpyKind kind)
Definition: cudart_types.h:41
cudaError_t(* cudaMalloc_type)(void **devPtr, size_t size)
Definition: cudart_types.h:40
cudaError_t(* cudaEventElapsedTime_type)(float *ms, cudaEvent_t start, cudaEvent_t end)
Definition: cudart_types.h:30