Merge pull request #1113 from wenkaidu/hop_count

Use NUMA distance for hop count calculation

[ROCm/clr commit: 3178ae2f92]
このコミットが含まれているのは:
Maneesh Gupta
2019-05-16 14:16:29 +05:30
committed by GitHub
コミット ef71f962f9
+4 -3
ファイルの表示
@@ -574,9 +574,10 @@ hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t* link
HSA_ERROR_CHECK(err);
*linktype = link_info.link_type;
err = hsa_amd_agent_memory_pool_get_info(device1Handle->_hsaAgent, pool, HSA_AMD_AGENT_MEMORY_POOL_INFO_NUM_LINK_HOPS, hopcount);
HSA_ERROR_CHECK(err);
if (link_info.numa_distance < 30)
*hopcount = 1;
else
*hopcount = 2;
return ihipLogStatus(hipSuccess);
}
}