nvidia/cuda: Add cuMemsetD# functions

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-09-28 03:46:50 +02:00
parent 62918f5462
commit 772d21a8b6
2 changed files with 12 additions and 0 deletions

View file

@ -157,6 +157,12 @@ streamfx::nvidia::cuda::cuda::cuda() : _library()
P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemcpyHtoD); P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemcpyHtoD);
P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemcpyHtoDAsync); P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemcpyHtoDAsync);
P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemHostGetDevicePointer); P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemHostGetDevicePointer);
P_CUDA_LOAD_SYMBOL_V2(cuMemsetD8);
P_CUDA_LOAD_SYMBOL(cuMemsetD8Async);
P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemsetD16);
P_CUDA_LOAD_SYMBOL_OPT(cuMemsetD16Async);
P_CUDA_LOAD_SYMBOL_OPT_V2(cuMemsetD32);
P_CUDA_LOAD_SYMBOL_OPT(cuMemsetD32Async);
// Virtual Memory Management // Virtual Memory Management
// - Not yet needed. // - Not yet needed.

View file

@ -265,6 +265,12 @@ namespace streamfx::nvidia::cuda {
P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoAAsync, array_t dst, std::size_t dstOffset, void* src, std::size_t byteCount); P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoAAsync, array_t dst, std::size_t dstOffset, void* src, std::size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoD, device_ptr_t dst, void* src, std::size_t byteCount); P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoD, device_ptr_t dst, void* src, std::size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoDAsync, device_ptr_t dst, void* src, std::size_t byteCount); P_CUDA_DEFINE_FUNCTION(cuMemcpyHtoDAsync, device_ptr_t dst, void* src, std::size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemsetD8, device_ptr_t dst, uint8_t d, size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemsetD8Async, device_ptr_t dst, uint8_t d, size_t byteCount, stream_t stream);
P_CUDA_DEFINE_FUNCTION(cuMemsetD16, device_ptr_t dst, uint16_t d, size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemsetD16Async, device_ptr_t dst, uint16_t d, size_t byteCount, stream_t stream);
P_CUDA_DEFINE_FUNCTION(cuMemsetD32, device_ptr_t dst, uint32_t d, size_t byteCount);
P_CUDA_DEFINE_FUNCTION(cuMemsetD32Async, device_ptr_t dst, uint32_t d, size_t byteCount, stream_t stream);
// Virtual Memory Management // Virtual Memory Management
// - Not yet needed. // - Not yet needed.