CUDA C-API 的 Shim 层。 更多...
#include <cuda.hpp>
|
| cudaAPI (cudaAPI const &)=delete |
|
void | operator= (cudaAPI const &)=delete |
|
|
static KVIKIO_EXPORT cudaAPI & | instance () |
|
|
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.hpp 的 30 行。
本类的文档生成自以下文件