Merge pull request #1081 from mangupta/swdev-181624

Implement hipExtGetLinkTypeAndHopCount for ROCm devices
Tento commit je obsažen v:
Maneesh Gupta
2019-05-07 16:15:41 +05:30
odevzdal GitHub
2 změnil soubory, kde provedl 63 přidání a 0 odebrání
+14
Zobrazit soubor
@@ -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
/**
* @}