aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikhil Raj <nikhil.raj@arm.com>2021-05-07 17:07:09 +0100
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2021-05-10 18:04:46 +0100
commit2be1b12df67af8a11dd32a024b2b9281b8b672ce (patch)
tree3d28f44d55961d66b6c77aa29397333e25516270 /src
parent016e0a5d3369ee9cecec9224245edac43fc653e4 (diff)
downloadarmnn-2be1b12df67af8a11dd32a024b2b9281b8b672ce.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')
-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();