aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test
diff options
context:
space:
mode:
authorNikhil Raj <nikhil.raj@arm.com>2021-05-07 17:07:09 +0100
committerJim Flynn <jim.flynn@arm.com>2021-05-10 12:17:00 +0000
commit01bc02d57fc9cbefeb53fbc79a8f0b5d28f87873 (patch)
tree3d28f44d55961d66b6c77aa29397333e25516270 /src/backends/backendsCommon/test
parentff9a29d5bf0e31245695d6787d1f5da93beae859 (diff)
downloadarmnn-01bc02d57fc9cbefeb53fbc79a8f0b5d28f87873.tar.gz
IVGCVSW-5808 Fix ArmNN backend profiling tests which fail on Jenkins with NPU enabled
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ie8f8d9d2dd65d85ed40529233ed45c09f862d602
Diffstat (limited to 'src/backends/backendsCommon/test')
-rw-r--r--src/backends/backendsCommon/test/BackendProfilingTests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backends/backendsCommon/test/BackendProfilingTests.cpp b/src/backends/backendsCommon/test/BackendProfilingTests.cpp
index d0f8fbe9c3..91399b4887 100644
--- a/src/backends/backendsCommon/test/BackendProfilingTests.cpp
+++ b/src/backends/backendsCommon/test/BackendProfilingTests.cpp
@@ -125,10 +125,10 @@ BOOST_AUTO_TEST_CASE(BackendProfilingCounterRegisterMockBackendTest)
unsigned int shiftedId = 0;
-#if defined(ETHOSN_SUPPORT_ENABLED)
- // Shift the id as ETHOSN is enabled.
- shiftedId = 4;
-#endif
+ if (armnn::BackendRegistry().IsBackendRegistered("EthosNAcc"))
+ {
+ shiftedId = 4;
+ }
// Check if the MockBackends 3 dummy counters {0, 1, 2-5 (four cores)} are registered
armnn::BackendId mockId = armnn::MockBackendId();