pub unsafe extern "C" fn hipDeviceEnablePeerAccess(
peerDeviceId: c_int,
flags: c_uint,
) -> hipError_t
Expand 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 Peer device to enable direct access to from the current device @param [in] flags Reserved for future use, must be zero
Returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, @returns #hipErrorPeerAccessAlreadyEnabled if peer access is already enabled for this device.