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/backends/backendsCommon | |
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/backends/backendsCommon')
-rw-r--r-- | src/backends/backendsCommon/test/BackendProfilingTests.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backends/backendsCommon/test/BackendProfilingTests.cpp b/src/backends/backendsCommon/test/BackendProfilingTests.cpp index 3651696fd3..d262abca1b 100644 --- a/src/backends/backendsCommon/test/BackendProfilingTests.cpp +++ b/src/backends/backendsCommon/test/BackendProfilingTests.cpp @@ -155,8 +155,8 @@ TEST_CASE("TestBackendCounters") CounterIdMap counterIdMap; MockBackendSendCounterPacket sendCounterPacket; - const armnn::BackendId cpuAccId(armnn::Compute::CpuAcc); - const armnn::BackendId gpuAccId(armnn::Compute::GpuAcc); + const std::string cpuAccId(GetComputeDeviceAsCString(armnn::Compute::CpuAcc)); + const std::string gpuAccId(GetComputeDeviceAsCString(armnn::Compute::GpuAcc)); ProfilingOptions options; options.m_EnableProfiling = true; @@ -173,7 +173,7 @@ TEST_CASE("TestBackendCounters") std::shared_ptr<IBackendProfilingContext> gpuProfilingContextPtr = std::make_shared<armnn::MockBackendProfilingContext>(gpuBackendProfilingPtr); - std::unordered_map<armnn::BackendId, + std::unordered_map<std::string, std::shared_ptr<IBackendProfilingContext>> backendProfilingContexts; backendProfilingContexts[cpuAccId] = cpuProfilingContextPtr; @@ -222,7 +222,7 @@ TEST_CASE("TestBackendCounters") periodicCounterSelectionCommandHandler(PacketWriter(period, gpuCounters)); periodicCounterCapture.Stop(); - std::set<armnn::BackendId> activeIds = holder.GetCaptureData().GetActiveBackends(); + std::set<std::string> activeIds = holder.GetCaptureData().GetActiveBackends(); CHECK(activeIds.size() == 1); CHECK((activeIds.find(gpuAccId) != activeIds.end())); @@ -403,8 +403,8 @@ TEST_CASE("TestBackendCounterLogging") CounterIdMap counterIdMap; MockBackendSendCounterPacket sendCounterPacket; - const armnn::BackendId cpuAccId(armnn::Compute::CpuAcc); - const armnn::BackendId gpuAccId(armnn::Compute::GpuAcc); + const std::string cpuAccId(GetComputeDeviceAsCString(armnn::Compute::CpuAcc)); + const std::string gpuAccId(GetComputeDeviceAsCString(armnn::Compute::GpuAcc)); ProfilingOptions options; options.m_EnableProfiling = true; @@ -417,7 +417,7 @@ TEST_CASE("TestBackendCounterLogging") std::shared_ptr<IBackendProfilingContext> cpuProfilingContextPtr = std::make_shared<armnn::MockBackendProfilingContext>(cpuBackendProfilingPtr); - std::unordered_map<armnn::BackendId, + std::unordered_map<std::string, std::shared_ptr<IBackendProfilingContext>> backendProfilingContexts; uint16_t globalId = 5; |