Skip to main content

copy_peer

Function copy_peer 

Source
pub fn copy_peer<T: Copy>(
    dst: &mut DeviceBuffer<T>,
    dst_device: &Device,
    src: &DeviceBuffer<T>,
    src_device: &Device,
) -> CudaResult<()>
Expand description

Copies data between device buffers on different GPUs (synchronous).

Both buffers must have the same length. Peer access should be enabled between the source and destination devices before calling this function.

ยงErrors