nvidia/cuda: Add cuCtxCreate, cuCtxSynchronize

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-05-12 02:48:11 +02:00
parent 7ac5670d54
commit a40db1258a
2 changed files with 5 additions and 2 deletions

View file

@ -64,12 +64,14 @@ nvidia::cuda::cuda::cuda()
CUDA_LOAD_SYMBOL_V2(cuDevicePrimaryCtxSetFlags); CUDA_LOAD_SYMBOL_V2(cuDevicePrimaryCtxSetFlags);
// Context Management // Context Management
CUDA_LOAD_SYMBOL_V2(cuCtxCreate);
CUDA_LOAD_SYMBOL_V2(cuCtxDestroy); CUDA_LOAD_SYMBOL_V2(cuCtxDestroy);
CUDA_LOAD_SYMBOL(cuCtxGetCurrent); CUDA_LOAD_SYMBOL(cuCtxGetCurrent);
CUDA_LOAD_SYMBOL(cuCtxGetStreamPriorityRange); CUDA_LOAD_SYMBOL(cuCtxGetStreamPriorityRange);
CUDA_LOAD_SYMBOL_V2(cuCtxPopCurrent); CUDA_LOAD_SYMBOL_V2(cuCtxPopCurrent);
CUDA_LOAD_SYMBOL_V2(cuCtxPushCurrent); CUDA_LOAD_SYMBOL_V2(cuCtxPushCurrent);
CUDA_LOAD_SYMBOL(cuCtxSetCurrent); CUDA_LOAD_SYMBOL(cuCtxSetCurrent);
CUDA_LOAD_SYMBOL(cuCtxSynchronize);
// Memory Management // Memory Management
CUDA_LOAD_SYMBOL_V2(cuArrayGetDescriptor); CUDA_LOAD_SYMBOL_V2(cuArrayGetDescriptor);

View file

@ -160,7 +160,7 @@ namespace nvidia::cuda {
CUDA_DEFINE_FUNCTION(cuDevicePrimaryCtxSetFlags, cu_device_t device, cu_context_flags flags); CUDA_DEFINE_FUNCTION(cuDevicePrimaryCtxSetFlags, cu_device_t device, cu_context_flags flags);
// Context Management // Context Management
// cuCtxCreate_v2 CUDA_DEFINE_FUNCTION(cuCtxCreate, cu_context_t* ctx, cu_context_flags flags, cu_device_t device);
CUDA_DEFINE_FUNCTION(cuCtxDestroy, cu_context_t ctx); CUDA_DEFINE_FUNCTION(cuCtxDestroy, cu_context_t ctx);
// cuCtxGetApiVersion // cuCtxGetApiVersion
// cuCtxGetCacheConfig // cuCtxGetCacheConfig
@ -177,6 +177,7 @@ namespace nvidia::cuda {
// cuCtxSetLimit // cuCtxSetLimit
// cuCtxSetSharedMemConfig // cuCtxSetSharedMemConfig
// cuCtxSynchronize // cuCtxSynchronize
CUDA_DEFINE_FUNCTION(cuCtxSynchronize);
// UNDOCUMENTED? cuCtxResetPersistingL2Cache // UNDOCUMENTED? cuCtxResetPersistingL2Cache
// Module Management // Module Management
@ -395,7 +396,7 @@ namespace nvidia::cuda {
// cuGraphicsD3D10RegisterResource // cuGraphicsD3D10RegisterResource
// Direct3D11 Interopability // Direct3D11 Interopability
CUDA_DEFINE_FUNCTION(cuD3D11GetDevice, std::int32_t* device, IDXGIAdapter* adapter); CUDA_DEFINE_FUNCTION(cuD3D11GetDevice, cu_device_t* device, IDXGIAdapter* adapter);
// cuD3D11GetDevices // cuD3D11GetDevices
CUDA_DEFINE_FUNCTION(cuGraphicsD3D11RegisterResource, cu_graphics_resource_t* resource, CUDA_DEFINE_FUNCTION(cuGraphicsD3D11RegisterResource, cu_graphics_resource_t* resource,
ID3D11Resource* d3dresource, std::uint32_t flags); ID3D11Resource* d3dresource, std::uint32_t flags);