diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2021-03-24 14:51:31 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2021-03-25 09:13:55 +0000 |
commit | ade8c1daab87abf628c42a0bbc002193d7ac40f6 (patch) | |
tree | 6df07d11a9a2fb7a38ffc496b82182ea6886fe1c /src/backends/neon/test/CMakeLists.txt | |
parent | f0a6dec75832604d5ab18242dc216852821a8279 (diff) | |
download | armnn-ade8c1daab87abf628c42a0bbc002193d7ac40f6.tar.gz |
IVGCVSW-5676 Eliminating some Neon unit tests for debug builds.
* Creating a new NeonLayerTests_NDK_Bug test class.
* Moving a subset of tests effected by an NDK bug from NeonLayerTests
into NeonLayerTests_NDK_Bug.
* Excluding NeonLayerTests_NDK_Bug from the build if it's an Android
debug build and NDK is less than r21.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Icb16d8bbb784fb0357deef281d7aa713e11af8ac
Diffstat (limited to 'src/backends/neon/test/CMakeLists.txt')
-rw-r--r-- | src/backends/neon/test/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/backends/neon/test/CMakeLists.txt b/src/backends/neon/test/CMakeLists.txt index a821df7284..5c37f1f2a7 100644 --- a/src/backends/neon/test/CMakeLists.txt +++ b/src/backends/neon/test/CMakeLists.txt @@ -16,6 +16,33 @@ list(APPEND armnnNeonBackendUnitTests_sources NeonWorkloadFactoryHelper.hpp ) +# There's a known Android NDK bug which causes a subset of NeonLayerTests to +# fail. We'll exclude these tests in NeonLayerTests_NDK_Bug.cpp if we're doing +# a debug build and NDK is less than r21. +# https://github.com/android/ndk/issues/1135 + +# Default to always including these tests. +set(INCLUDE_NDK_BUG_TESTS "ON") +# Reconsider if we in a debug build. +if ( NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release" ) + # And NDK_VERSION has been set. + if ( DEFINED NDK_VERSION ) + # And the version is less than r21. + if ( ${NDK_VERSION} STRLESS "r21" ) + set(INCLUDE_NDK_BUG_TESTS "OFF") + endif() + endif() +endif() + +if ( INCLUDE_NDK_BUG_TESTS STREQUAL "ON" ) + list(APPEND armnnNeonBackendUnitTests_sources + NeonLayerTests_NDK_Bug.cpp + ) + message ( "Added NeonLayerTests_NDK_Bug.cpp" ) +else() + +endif() + if (ARMNNREF) list(APPEND armnnNeonBackendUnitTests_sources NeonFallbackTests.cpp |