IVGCVSW-6814 Remove references to armnn:BackendId in the profiling code
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: Ib399a5eee9e52882800ec3e02e4173424a7c19b1
diff --git a/src/backends/backendsCommon/test/BackendProfilingTests.cpp b/src/backends/backendsCommon/test/BackendProfilingTests.cpp
index 3651696..d262abc 100644
--- a/src/backends/backendsCommon/test/BackendProfilingTests.cpp
+++ b/src/backends/backendsCommon/test/BackendProfilingTests.cpp
@@ -155,8 +155,8 @@
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 @@
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 @@
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 @@
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 @@
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;