pub unsafe extern "C" fn cuDeviceCanAccessPeer(
canAccessPeer: *mut c_int,
dev: CUdevice,
peerDev: CUdevice,
) -> CUresult
Expand description
\brief Queries if a device may directly access a peer device’s memory.
Returns in \p *canAccessPeer a value of 1 if contexts on \p dev are capable of directly accessing memory from contexts on \p peerDev and 0 otherwise. If direct access of \p peerDev from \p dev is possible, then access may be enabled on two specific contexts by calling ::cuCtxEnablePeerAccess().
\param canAccessPeer - Returned access capability \param dev - Device from which allocations on \p peerDev are to be directly accessed. \param peerDev - Device on which the allocations to be directly accessed by \p dev reside.
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_DEVICE \notefnerr
\sa ::cuCtxEnablePeerAccess, ::cuCtxDisablePeerAccess, ::cudaDeviceCanAccessPeer