Function cuCtxDisablePeerAccess

Source
pub unsafe extern "C" fn cuCtxDisablePeerAccess(
    peerContext: CUcontext,
) -> CUresult
Expand description

\brief Disables direct access to memory allocations in a peer context and unregisters any registered allocations.

Returns ::CUDA_ERROR_PEER_ACCESS_NOT_ENABLED if direct peer access has not yet been enabled from \p peerContext to the current context.

Returns ::CUDA_ERROR_INVALID_CONTEXT if there is no current context, or if \p peerContext is not a valid context.

\param peerContext - Peer context to disable direct access to

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_PEER_ACCESS_NOT_ENABLED, ::CUDA_ERROR_INVALID_CONTEXT, \notefnerr

\sa ::cuDeviceCanAccessPeer, ::cuCtxEnablePeerAccess, ::cudaDeviceDisablePeerAccess