pub fn enable_peer_access_current(peer_dev: i32) -> CudaResult<bool> {
    match unsafe { cudaDeviceEnablePeerAccess(peer_dev as c_int, 0) } {
      cudaError_cudaSuccess => Ok(false),
      cudaError_cudaErrorPeerAccessAlreadyEnabled => Ok(true),
      e => Err(CudaError(e)),
    }
  }
/// Enable peer device access from the current device to `peer_dev`.
/// Returns whether or not peer device access was previously enabled.
///
/// Corresponds to `cudaDeviceEnablePeerAccess`.
Enable peer device access from the current device to `peer_dev`.
Returns whether or not peer device access was previously enabled.


Enable peer device access from the current device to ` peer_dev ` . Returns whether or not peer device access was previously enabled .
pub fn enable_peer_access_current(peer_dev: i32) -> CudaResult<bool> {
    match unsafe { cudaDeviceEnablePeerAccess(peer_dev as c_int, 0) } {
      cudaError_cudaSuccess => Ok(false),
      cudaError_cudaErrorPeerAccessAlreadyEnabled => Ok(true),
      e => Err(CudaError(e)),
    }
  }
pub fn enable_peer_access_current ( peer_dev : i32 ) -> CudaResult < bool > { match unsafe { cudaDeviceEnablePeerAccess ( peer_dev as c_int , 0 ) } { cudaError_cudaSuccess => Ok ( false ) , cudaError_cudaErrorPeerAccessAlreadyEnabled => Ok ( true ) , e => Err ( CudaError ( e ) ) , } }
Enable peer device access from the current device to `peer_dev`.
Enable peer device access from the current device to ` peer_dev ` .
peer_dev
i32
peer_dev
i32