公有成员函数 | 静态公有成员函数 | 公有属性 | 所有成员列表
kvikio::cudaAPI 类参考

CUDA C-API 的 Shim 层。 更多...

#include <cuda.hpp>

公有成员函数

 cudaAPI (cudaAPI const &)=delete
 
void operator= (cudaAPI const &)=delete
 

静态公有成员函数

static KVIKIO_EXPORT cudaAPIinstance ()
 

公有属性

decltype(cuInit) * Init {nullptr}
 
decltype(cuMemHostAlloc) * MemHostAlloc {nullptr}
 
decltype(cuMemFreeHost) * MemFreeHost {nullptr}
 
decltype(cuMemcpyHtoDAsync) * MemcpyHtoDAsync {nullptr}
 
decltype(cuMemcpyDtoHAsync) * MemcpyDtoHAsync {nullptr}
 
decltype(cuPointerGetAttribute) * PointerGetAttribute {nullptr}
 
decltype(cuPointerGetAttributes) * PointerGetAttributes {nullptr}
 
decltype(cuCtxPushCurrent) * CtxPushCurrent {nullptr}
 
decltype(cuCtxPopCurrent) * CtxPopCurrent {nullptr}
 
decltype(cuCtxGetCurrent) * CtxGetCurrent {nullptr}
 
decltype(cuMemGetAddressRange) * MemGetAddressRange {nullptr}
 
decltype(cuGetErrorName) * GetErrorName {nullptr}
 
decltype(cuGetErrorString) * GetErrorString {nullptr}
 
decltype(cuDeviceGet) * DeviceGet {nullptr}
 
decltype(cuDevicePrimaryCtxRetain) * DevicePrimaryCtxRetain {nullptr}
 
decltype(cuDevicePrimaryCtxRelease) * DevicePrimaryCtxRelease {nullptr}
 
decltype(cuStreamSynchronize) * StreamSynchronize {nullptr}
 
decltype(cuStreamCreate) * StreamCreate {nullptr}
 
decltype(cuStreamDestroy) * StreamDestroy {nullptr}
 

详细描述

CUDA C-API 的 Shim 层。

这是一个单例类,在构造时使用 dlopen 加载 CUDA 的 C-API。

例如,调用 cudaAPI::instance().MemHostAlloc() 相当于调用 cuMemHostAlloc()

定义于文件 cuda.hpp30 行。


本类的文档生成自以下文件