cuda.bindings._v2.driver.ctx_disable_peer_access#

cuda.bindings._v2.driver.ctx_disable_peer_access(intptr_t peer_context)#

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 peer_context to the current context. Returns CUDA_ERROR_INVALID_CONTEXT if there is no current context, or if peer_context is not a valid context.

Parameters:

peer_context (intptr_t) – Peer context to disable direct access to.

See also

cuCtxDisablePeerAccess