pub unsafe fn memcpy_dtod_async(
    dst: CUdeviceptr,
    src: CUdeviceptr,
    num_bytes: usize,
    stream: CUstream
) -> Result<(), DriverError>
Expand description

Copies memory from Device to Device with stream ordered semantics.

See cuda docs

Safety

  1. T must be the type that BOTH device pointers were allocated with.
  2. Neither device pointer should not have been freed already (double free)
  3. The stream should be the stream the memory was allocated on.