diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2022-03-04 12:11:09 +0000 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-03-04 12:11:09 +0000 |
commit | 6f073727ad98d94f43a3938ddeac3f5a231ad959 (patch) | |
tree | d691d5f28846d66729cd0b4c52761d4d9a90305f /src/profiling/CounterIdMap.cpp | |
parent | ae91a5e058da31e912c0768f516b2ef013c3b39e (diff) | |
download | armnn-6f073727ad98d94f43a3938ddeac3f5a231ad959.tar.gz |
IVGCVSW-6814 Remove references to armnn:BackendId in the profiling code
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: Ib399a5eee9e52882800ec3e02e4173424a7c19b1
Diffstat (limited to 'src/profiling/CounterIdMap.cpp')
-rw-r--r-- | src/profiling/CounterIdMap.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/profiling/CounterIdMap.cpp b/src/profiling/CounterIdMap.cpp index bb575705ed..bff8e0660e 100644 --- a/src/profiling/CounterIdMap.cpp +++ b/src/profiling/CounterIdMap.cpp @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT // #include "CounterIdMap.hpp" -#include "armnn/BackendId.hpp" #include <armnn/Exceptions.hpp> #include <map> @@ -14,9 +13,9 @@ namespace pipe void CounterIdMap::RegisterMapping(uint16_t globalCounterId, uint16_t backendCounterId, - const armnn::BackendId& backendId) + const std::string& backendId) { - std::pair<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId); + std::pair<uint16_t, std::string> backendIdPair(backendCounterId, backendId); m_GlobalCounterIdMap[globalCounterId] = backendIdPair; m_BackendCounterIdMap[backendIdPair] = globalCounterId; } @@ -27,9 +26,9 @@ void CounterIdMap::Reset() m_BackendCounterIdMap.clear(); } -uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::BackendId& backendId) const +uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const std::string& backendId) const { - std::pair<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId); + std::pair<uint16_t, std::string> backendIdPair(backendCounterId, backendId); auto it = m_BackendCounterIdMap.find(backendIdPair); if (it == m_BackendCounterIdMap.end()) { @@ -40,7 +39,7 @@ uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::Backe return it->second; } -const std::pair<uint16_t, armnn::BackendId>& CounterIdMap::GetBackendId(uint16_t globalCounterId) const +const std::pair<uint16_t, std::string>& CounterIdMap::GetBackendId(uint16_t globalCounterId) const { auto it = m_GlobalCounterIdMap.find(globalCounterId); if (it == m_GlobalCounterIdMap.end()) |