pub unsafe extern "C" fn cudaDeviceDisablePeerAccess(
peerDevice: c_int,
) -> cudaError_tExpand description
Disables direct access to memory allocations on a peer device.
Returns cudaError_t::CUDA_ERROR_PEER_ACCESS_NOT_ENABLED if direct access to memory on peerDevice has not yet been enabled from the current device.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
§Parameters
peerDevice: Peer device to disable direct access to
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_PEER_ACCESS_NOT_ENABLEDcudaError_t::CUDA_ERROR_INVALID_DEVICE
See also: cudaDeviceCanAccessPeer, cudaDeviceEnablePeerAccess, cuCtxDisablePeerAccess.