pub unsafe fn memcpy(
dst: *mut c_void,
src: *const c_void,
count: usize,
kind: MemcpyKind,
) -> CudaRtResult<()>Expand description
Synchronously copy count bytes between memory regions.
Mirrors cudaMemcpy.
§Safety
src and dst must point to valid memory of the appropriate kind
(host or device) and must not overlap.
§Errors
CudaRtError::InvalidMemcpyDirectionfor unsupportedkind.- Driver errors for invalid pointers or counts.