Implement hipExtGetLinkTypeAndHopCount for ROCm devices

Change-Id: Ie5bb4f640ac6d189c7fceeab22627a7494fd10bd


[ROCm/hip commit: 035ef04e1f]
This commit is contained in:
Maneesh Gupta
2019-05-06 15:54:31 +05:30
parent f49a4c6d89
commit f7eaff474b
2 changed files with 63 additions and 0 deletions
@@ -542,6 +542,20 @@ hipError_t hipSetDeviceFlags(unsigned flags);
*/
hipError_t hipChooseDevice(int* device, const hipDeviceProp_t* prop);
/**
* @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
*/
hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t* linktype, uint32_t* hopcount);
// end doxygen Device
/**
* @}