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