Skip to main content

enable_peer_access

Function enable_peer_access 

Source
pub fn enable_peer_access(device: &Device, peer: &Device) -> CudaResult<()>
Expand description

Enables peer access from device’s primary context to peer’s primary context.

After calling this function, kernels and copy operations running on device can directly read from and write to memory allocated on peer.

§Errors