From 76f7c9a5fd5d146f653bec9ccae3d3aab7961e08 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 9 Mar 2021 15:35:05 -0600 Subject: [PATCH] SWDEV-267198 : adding gpu index to hsa_handles file Change-Id: I6ddba45ab31fff97a1f85f889c56693accf8f5bc [ROCm/roctracer commit: 1c77416a6c1efc8f9cfc4f8b839d34d91ad4b669] --- projects/roctracer/src/util/hsa_rsrc_factory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/roctracer/src/util/hsa_rsrc_factory.cpp b/projects/roctracer/src/util/hsa_rsrc_factory.cpp index cf172cae11..498aa25a54 100644 --- a/projects/roctracer/src/util/hsa_rsrc_factory.cpp +++ b/projects/roctracer/src/util/hsa_rsrc_factory.cpp @@ -750,7 +750,7 @@ void HsaRsrcFactory::DumpHandles(FILE* file) { fprintf(file, "0x%lx agent %s\n", agent_info->dev_id.handle, (agent_info->dev_type == HSA_DEVICE_TYPE_CPU) ? "cpu" : "gpu"); if (agent_info->cpu_pool.handle != 0) fprintf(file, "0x%lx pool cpu\n", agent_info->cpu_pool.handle); if (agent_info->kern_arg_pool.handle != 0) fprintf(file, "0x%lx pool cpu kernarg\n", agent_info->kern_arg_pool.handle); - if (agent_info->gpu_pool.handle != 0) fprintf(file, "0x%lx pool gpu\n", agent_info->gpu_pool.handle); + if (agent_info->gpu_pool.handle != 0) fprintf(file, "0x%lx pool gpu%u\n", agent_info->gpu_pool.handle, agent_info->dev_index); } fflush(file); }