pub unsafe fn memcpy_host_to_device(
device: *mut c_void,
host: *const c_void,
count: usize,
) -> boolExpand description
Copy count bytes from host to a CUDA device pointer. Returns false on
failure or if libcudart is unavailable.
The counterpart of memcpy_device_to_host, for filling a writable
mapping (CudaHandle::map_mut) from host bytes.
ยงSafety
The caller must ensure:
hostpoints to at leastcountbytes of readable memory.devicepoints to at leastcountbytes of valid CUDA device memory (i.e. obtained from aCudaMap::device_ptr()while the map is live).