From 331cdb50111693398e0bc37e085bd4e0c85f94d7 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Fri, 17 Feb 2023 11:12:27 -0600 Subject: [PATCH] Fixing rocprofilerv2 naming and CMake issues Change-Id: Ib6d336349a056731e5c0f35151296d6fea671360 [ROCm/rocprofiler commit: a5e1069920664fff98b83f89c64db49f91f0b4af] --- projects/rocprofiler/src/util/hsa_rsrc_factory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/src/util/hsa_rsrc_factory.cpp b/projects/rocprofiler/src/util/hsa_rsrc_factory.cpp index cd4948ff66..50d4ec1eb6 100644 --- a/projects/rocprofiler/src/util/hsa_rsrc_factory.cpp +++ b/projects/rocprofiler/src/util/hsa_rsrc_factory.cpp @@ -415,12 +415,12 @@ uint32_t HsaRsrcFactory::GetCountOfCpuAgents() { return uint32_t(cpu_list_.size( bool HsaRsrcFactory::GetGpuAgentInfo(uint32_t idx, const AgentInfo** agent_info) { // Determine if request is valid uint32_t size = uint32_t(gpu_list_.size()); - if (idx-cpu_list_.size() >= size) { + if (idx >= size) { return false; } // Copy AgentInfo from specified index - *agent_info = gpu_list_[idx-cpu_list_.size()]; + *agent_info = gpu_list_[idx]; return true; }