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


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