pub unsafe extern "C" fn hipCtxEnablePeerAccess(
peerCtx: hipCtx_t,
flags: c_uint,
) -> hipError_t
Expand description
@brief Enables direct access to memory allocations in a peer context.
Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.
@param [in] peerCtx Peer context @param [in] flags flags, need to set as 0
@returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, #hipErrorPeerAccessAlreadyEnabled
@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice @warning PeerToPeer support is experimental.
@warning This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.