IVGCVSW-3656 Make the reference backend optional
[platform/upstream/armnn.git] / src / armnn / test / ProfilerTests.cpp
index 90f6d8b..9290e69 100644 (file)
@@ -158,6 +158,10 @@ BOOST_AUTO_TEST_CASE(ProfilingMacros)
     profiler->EnableProfiling(false);
 }
 
+#if defined(ARMCOMPUTEREF_ENABLED)
+
+// This test unit needs the reference backend, it's not available if the reference backend is not built
+
 BOOST_AUTO_TEST_CASE(RuntimeLoadNetwork)
 {
     // Get a reference to the profiler manager.
@@ -185,6 +189,8 @@ BOOST_AUTO_TEST_CASE(RuntimeLoadNetwork)
     BOOST_TEST(!profilerManager.GetProfiler());
 }
 
+#endif
+
 BOOST_AUTO_TEST_CASE(WriteEventResults)
 {
     // Get a reference to the profiler manager.