rocrtst: performance::memory_async_copy test fix on DXG

Signed-off-by: Flora Cui <flora.cui@amd.com>


[ROCm/ROCR-Runtime commit: e884650952]
This commit is contained in:
Flora Cui authored and Cui, Flora committed 2025-05-26 15:01:27 +08:00
1 parent 9c6828647b
commit 4360679cb7
1 file changed
+7 -1
@@ -692,8 +692,14 @@ static hsa_status_t GetGPUAgents(hsa_agent_t agent, void* data) {
err = hsa_agent_get_info(agent, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_DOMAIN, &pci_domain_id);
RET_IF_HSA_ERR(err);
bool is_dxg = false;
int fd = open("/dev/dxg", O_RDWR);
if (fd >= 0) {
close(fd);
is_dxg = true;
}
hwloc_obj_t gpu_numa_node = nullptr;
if (agent_bdf_id != kDtifBdfId) {
if ((agent_bdf_id != kDtifBdfId) && !is_dxg) {
hwloc_obj_t gpu_hwl_dev;
gpu_hwl_dev = hwloc_get_pcidev_by_busid(ptr->topology(), pci_domain_id, bus, device,
function);