imate
C++/CUDA Reference
Loading...
Searching...
No Matches
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
70
71
72// ============
73// Declarations
74// ============
75
76// The following functions are not a part of CUDA runtime API. As such, the
77// compiler might warn that previous declaration of these functions do not
78// exist. To silence the warning, we declare them. Note that these functions
79// are defined in cuda-installation-dir/include/crt/host_runtime.h
80#ifdef __cplusplus
81extern "C" {
82#endif
83 void** __cudaRegisterFatBinary(void *fatCubin);
84 void __cudaRegisterFatBinaryEnd(void **fatCubinHandle);
85 void __cudaUnregisterFatBinary(void **fatCubinHandle);
86#ifdef __cplusplus
87}
88#endif
89
90
91#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(void **fatCubinHandle)
Definition of CUDA's __cudaRegisterFatBinaryEnd function using dynamically loaded cudart library.
void __cudaUnregisterFatBinary(void **fatCubinHandle)
Definition of CUDA's __cudaUnregisterFatBinary function using dynamically loaded cudart library.
void ** __cudaRegisterFatBinary(void *fatCubin)
Definition of CUDA's __cudaRegisterFatBinary function using dynamically loaded cudart library.
void(* __cudaRegisterFatBinaryEnd_type)(void **fatCubinHandle)
cudaError_t(* cudaGetDeviceCount_type)(int *count)
cudaError_t(* cudaEventSynchronize_type)(cudaEvent_t event)
void **(* __cudaRegisterFatBinary_type)(void *fatCubin)
cudaError_t(* cudaGetDevice_type)(int *device)
cudaError_t(* cudaSetDevice_type)(int device)
cudaError_t(* cudaEventRecord_type)(cudaEvent_t event, cudaStream_t stream)
cudaError_t(* cudaFree_type)(void *devPtr)
cudaError_t(* cudaGetDeviceProperties_type)(cudaDeviceProp *prop, int device)
void(* __cudaUnregisterFatBinary_type)(void **fatCubinHandle)
cudaError_t(* cudaEventDestroy_type)(cudaEvent_t event)
cudaError_t(* cudaEventCreate_type)(cudaEvent_t *event)
cudaError_t(* cudaMemcpy_type)(void *dst, const void *src, size_t count, cudaMemcpyKind kind)
cudaError_t(* cudaMalloc_type)(void **devPtr, size_t size)
cudaError_t(* cudaEventElapsedTime_type)(float *ms, cudaEvent_t start, cudaEvent_t end)