pub fn can_access_peer(&self, peer_dev: i32) -> CudaResult<bool> {
    let mut access: c_int = 0;
    match unsafe { cudaDeviceCanAccessPeer(&mut access as *mut c_int, self.0 as c_int, peer_dev as c_int) } {
      cudaError_cudaSuccess => Ok(access != 0),
      e => Err(CudaError(e)),
    }
  }
/// Check whether peer device access to `peer_dev` can be enabled.
///
/// Corresponds to `cudaDeviceCanAccessPeer`.
Check whether peer device access to `peer_dev` can be enabled.
Check whether peer device access to ` peer_dev ` can be enabled .
pub fn can_access_peer(&self, peer_dev: i32) -> CudaResult<bool> {
    let mut access: c_int = 0;
    match unsafe { cudaDeviceCanAccessPeer(&mut access as *mut c_int, self.0 as c_int, peer_dev as c_int) } {
      cudaError_cudaSuccess => Ok(access != 0),
      e => Err(CudaError(e)),
    }
  }
pub fn can_access_peer ( & self , peer_dev : i32 ) -> CudaResult < bool > { let mut access : c_int = 0 ; match unsafe { cudaDeviceCanAccessPeer ( & mut access as * mut c_int , self . 0 as c_int , peer_dev as c_int ) } { cudaError_cudaSuccess => Ok ( access != 0 ) , e => Err ( CudaError ( e ) ) , } }
Check whether peer device access to `peer_dev` can be enabled.
Check whether peer device access to ` peer_dev ` can be enabled .
&self
peer_dev
i32
&self
peer_dev
i32