Merge pull request #1081 from mangupta/swdev-181624

Implement hipExtGetLinkTypeAndHopCount for ROCm devices
이 커밋은 다음에 포함됨:
Maneesh Gupta 작성하고 GitHub가 2019-05-07 16:15:41 +05:30를 커밋함
커밋 d5abe65668
2 파일이 변경됨
+63

검색과 일치하는 파일 없음

+14
파일 보기
@@ -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
/**
* @}