Updated the test to access PCIe domain info for the agent

Change-Id: I901fd76f91315a0262945659d12349ba7b64ed11


[ROCm/ROCR-Runtime commit: 4890ffe224]
이 커밋은 다음에 포함됨:
Shweta Khatri 작성하고 David Yat Sin가 2023-10-26 11:37:12 -04:00를 커밋함
1 부모 eb664927dd
커밋 325f98d229
1 파일이 변경됨
+5 -2
+5 -2
파일 보기
@@ -674,9 +674,12 @@ static hsa_status_t GetGPUAgents(hsa_agent_t agent, void* data) {
name2, bus, device, function, name);
}
uint32_t pci_domain_id = 0;
err = hsa_agent_get_info(agent, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_DOMAIN, &pci_domain_id);
RET_IF_HSA_ERR(err);
hwloc_obj_t gpu_hwl_dev;
// Assume domain of 0 for now
gpu_hwl_dev = hwloc_get_pcidev_by_busid(ptr->topology(), 0, bus, device,
gpu_hwl_dev = hwloc_get_pcidev_by_busid(ptr->topology(), pci_domain_id, bus, device,
function);
if (gpu_hwl_dev == nullptr) {