From e67edb238a3304dd767a34eca484d84bfebf76f5 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Wed, 14 Aug 2019 14:05:46 +0100 Subject: IVGCVSW-3656 Make the reference backend optional * Made the build of the reference backend depend on a new ARMCOMPUTEREF macro * Made the relevant targets dependent on the ref backend * Moved Cl and Neon static registry initializers to separate files * Wrapped some of the unit tests into proper ifdefs where necessary Change-Id: I7f2c42699682630233a4c4b6aed2f005083de189 Signed-off-by: Matteo Martincigh --- src/backends/backendsCommon/test/DynamicBackendTests.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/backends/backendsCommon/test/DynamicBackendTests.hpp') diff --git a/src/backends/backendsCommon/test/DynamicBackendTests.hpp b/src/backends/backendsCommon/test/DynamicBackendTests.hpp index e225124e01..6c093fc952 100644 --- a/src/backends/backendsCommon/test/DynamicBackendTests.hpp +++ b/src/backends/backendsCommon/test/DynamicBackendTests.hpp @@ -1344,6 +1344,10 @@ void RuntimeInvalidOverridePathTestImpl() BOOST_TEST(supportedBackendIds.empty()); } +#if defined(ARMCOMPUTEREF_ENABLED) + +// This test unit needs the reference backend, it's not available if the reference backend is not built + void CreateReferenceDynamicBackendTestImpl() { using namespace armnn; @@ -1427,3 +1431,5 @@ void CreateReferenceDynamicBackendTestImpl() BOOST_TEST((workload != nullptr)); BOOST_TEST(workload.get() == boost::polymorphic_downcast(workload.get())); } + +#endif -- cgit v1.2.1