aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTestUtils.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-06-24 11:11:20 +0100
committerJames Conroy <james.conroy@arm.com>2020-06-26 16:30:58 +0000
commitc9631100b27f327fbbc761f8472de6c62fc8c3d3 (patch)
treee385deb4b36407e7be19f6098ceb156c39ef7859 /src/profiling/test/ProfilingTestUtils.cpp
parente7cc7c32165220446b58bed24b6d37e41fc506d0 (diff)
downloadarmnn-c9631100b27f327fbbc761f8472de6c62fc8c3d3.tar.gz
IVGCVSW-4171 Makes DumpOutgoingValidFileEndToEnd test work reliably
Change-Id: I51f244467a7b562344f04b910fe5be5e2ec0e3dc Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/test/ProfilingTestUtils.cpp')
-rw-r--r--src/profiling/test/ProfilingTestUtils.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/profiling/test/ProfilingTestUtils.cpp b/src/profiling/test/ProfilingTestUtils.cpp
index 758d959b02..0f437283f1 100644
--- a/src/profiling/test/ProfilingTestUtils.cpp
+++ b/src/profiling/test/ProfilingTestUtils.cpp
@@ -1201,15 +1201,9 @@ void VerifyPostOptimisationStructureTestImpl(armnn::BackendId backendId)
bool HasSuitableBackendRegistered()
{
- if (BackendRegistryInstance().IsBackendRegistered(GetComputeDeviceAsCString(armnn::Compute::CpuRef)))
- {
- return true;
- }
- if (BackendRegistryInstance().IsBackendRegistered(GetComputeDeviceAsCString(armnn::Compute::CpuAcc)))
- {
- return true;
- }
- if (BackendRegistryInstance().IsBackendRegistered(GetComputeDeviceAsCString(armnn::Compute::GpuAcc)))
+ // Only run the file only profiling unit tests on CpuRef until failure on build system can be debugged
+ if (BackendRegistryInstance().GetBackendIds().size() == 1 &&
+ BackendRegistryInstance().IsBackendRegistered(GetComputeDeviceAsCString(armnn::Compute::CpuRef)))
{
return true;
}