Function hip_sys::hiprt::hipExtGetLinkTypeAndHopCount
source · pub unsafe extern "C" fn hipExtGetLinkTypeAndHopCount(
device1: i32,
device2: i32,
linktype: *mut u32,
hopcount: *mut u32
) -> hipError_tExpand description
@brief Returns the link type and hop count between two devices
@param [in] device1 Ordinal for device1 @param [in] device2 Ordinal for device2 @param [out] linktype Returns the link type (See hsa_amd_link_info_type_t) between the two devices @param [out] hopcount Returns the hop count between the two devices
Queries and returns the HSA link type and the hop count between the two specified devices.
@returns #hipSuccess, #hipInvalidDevice, #hipErrorRuntimeOther