code: public static int cuDeviceCanAccessPeer(int canAccessPeer[], CUdevice dev, CUdevice peerDev)
      {
          return checkResult(cuDeviceCanAccessPeerNative(canAccessPeer, dev, peerDev));
      }
docs: Queries if a device may directly access a peer device's memory.
  
  <pre>
  CUresult cuDeviceCanAccessPeer (
  int* canAccessPeer,
  CUdevice dev,
  CUdevice peerDev )
  </pre>
  <div>
  <p>Queries if a device may directly access
  a peer device's memory.  Returns in <tt>*canAccessPeer</tt> a value
  of 1 if contexts on <tt>dev</tt> are capable of directly accessing
  memory from contexts on <tt>peerDev</tt> and 0 otherwise. If direct
  access of <tt>peerDev</tt> from <tt>dev</tt> is possible, then access
  may be enabled on two specific contexts by calling
  cuCtxEnablePeerAccess().
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param canAccessPeer Returned access capability
  @param dev Device from which allocations on peerDev are to be directly accessed.
  @param peerDev Device on which the allocations to be directly accessed by dev reside.
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_DEVICE
  
  @see JCudaDriver#cuCtxEnablePeerAccess
  @see JCudaDriver#cuCtxDisablePeerAccess