Skip to main content

cuda_memcpy_on

Function cuda_memcpy_on 

Source
pub unsafe fn cuda_memcpy_on<const SRC_DEVICE: bool, const DST_DEVICE: bool>(
    dst: *mut c_void,
    src: *const c_void,
    size_bytes: usize,
    device_ctx: &GpuDeviceCtx,
) -> Result<(), MemCopyError>
Expand description

FFI binding for cudaMemcpyAsync on an explicit stream.

ยงSafety

Must follow the rules of the cudaMemcpyAsync function from the CUDA runtime API.