Skip to main content

memcpy

Function memcpy 

Source
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