Function hip_sys::hiprt::hipDeviceEnablePeerAccess
source · pub unsafe extern "C" fn hipDeviceEnablePeerAccess(
peerDeviceId: i32,
flags: u32
) -> hipError_tExpand description
@brief Enable direct access from current device’s virtual address space to memory allocations physically located on a peer device.
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] peerDeviceId @param [in] flags
Returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, @returns #hipErrorPeerAccessAlreadyEnabled if peer access is already enabled for this device.