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
CudaError::InvalidValueif buffer lengths do not match.CudaError::PeerAccessNotEnabledif peer access has not been enabled.