imate
C++/CUDA Reference
Loading...
Searching...
No Matches
cudart_symbols.h File Reference
#include <string>
#include "./cudart_types.h"
Include dependency graph for cudart_symbols.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cudartSymbols
 A static container to store symbols of loaded cudart library. More...
 

Functions

void ** __cudaRegisterFatBinary (void *fatCubin)
 Definition of CUDA's __cudaRegisterFatBinary function using dynamically loaded cudart library.
 
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.
 

Function Documentation

◆ __cudaRegisterFatBinary()

void ** __cudaRegisterFatBinary ( void *  fatCubin)

Definition of CUDA's __cudaRegisterFatBinary function using dynamically loaded cudart library.

Definition at line 407 of file cudart_symbols.cpp.

408{
410 {
411 std::string lib_name = cudartSymbols::get_lib_name();
412 const char* symbol_name = "__cudaRegisterFatBinary";
413
415 dynamic_loading::load_symbol<__cudaRegisterFatBinary_type>(
416 lib_name.c_str(),
417 symbol_name);
418 }
419
421}
static __cudaRegisterFatBinary_type __cudaRegisterFatBinary
static std::string get_lib_name()
Returns the name of cudart shared library.

References cudartSymbols::__cudaRegisterFatBinary, and cudartSymbols::get_lib_name().

Here is the call graph for this function:

◆ __cudaRegisterFatBinaryEnd()

void __cudaRegisterFatBinaryEnd ( void **  fatCubinHandle)

Definition of CUDA's __cudaRegisterFatBinaryEnd function using dynamically loaded cudart library.

Definition at line 431 of file cudart_symbols.cpp.

432{
434 {
435 std::string lib_name = cudartSymbols::get_lib_name();
436 const char* symbol_name = "__cudaRegisterFatBinaryEnd";
437
439 dynamic_loading::load_symbol<__cudaRegisterFatBinaryEnd_type>(
440 lib_name.c_str(),
441 symbol_name);
442 }
443
444 return cudartSymbols::__cudaRegisterFatBinaryEnd(fatCubinHandle);
445}
static __cudaRegisterFatBinaryEnd_type __cudaRegisterFatBinaryEnd

References cudartSymbols::__cudaRegisterFatBinaryEnd, and cudartSymbols::get_lib_name().

Here is the call graph for this function:

◆ __cudaUnregisterFatBinary()

void __cudaUnregisterFatBinary ( void **  fatCubinHandle)

Definition of CUDA's __cudaUnregisterFatBinary function using dynamically loaded cudart library.

Definition at line 455 of file cudart_symbols.cpp.

456{
458 {
459 std::string lib_name = cudartSymbols::get_lib_name();
460 const char* symbol_name = "__cudaUnregisterFatBinary";
461
463 dynamic_loading::load_symbol<__cudaUnregisterFatBinary_type>(
464 lib_name.c_str(),
465 symbol_name);
466 }
467
468 return cudartSymbols::__cudaUnregisterFatBinary(fatCubinHandle);
469}
static __cudaUnregisterFatBinary_type __cudaUnregisterFatBinary

References cudartSymbols::__cudaUnregisterFatBinary, and cudartSymbols::get_lib_name().

Here is the call graph for this function: