# The variable to enable/disable the REFERENCE backend (ARMNN_COMPUTE_REF_ENABLED) is declared in android-nn-driver/Android.mk
ifeq ($(ARMNN_COMPUTE_REF_ENABLED),1)
LOCAL_CFLAGS += \
- -DARMCOMPUTEREF_ENABLED
+ -DARMNNREF_ENABLED
endif # ARMNN_COMPUTE_REF_ENABLED == 1
ifeq ($(Q_OR_LATER),1)
# The variable to enable/disable the REFERENCE backend (ARMNN_COMPUTE_REF_ENABLED) is declared in android-nn-driver/Android.mk
ifeq ($(ARMNN_COMPUTE_REF_ENABLED),1)
LOCAL_CFLAGS += \
- -DARMCOMPUTEREF_ENABLED
+ -DARMNNREF_ENABLED
endif # ARMNN_COMPUTE_REF_ENABLED == 1
ifeq ($(Q_OR_LATER),1)
-DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary/ \
-DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build \
-DBOOST_ROOT=$HOME/armnn-devenv/boost/install/ \
- -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMCOMPUTEREF=1 \
+ -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMNNREF=1 \
-DTF_GENERATED_SOURCES=$HOME/armnn-devenv/google/tf_pb/ -DBUILD_TF_PARSER=1 \
-DPROTOBUF_ROOT=$HOME/armnn-devenv/google/arm64_pb_install/
make -j16
-DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary \
-DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build/ \
-DBOOST_ROOT=$HOME/armnn-devenv/boost_arm64_install/ \
- -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMCOMPUTEREF=1 \
+ -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMNNREF=1 \
-DCAFFE_GENERATED_SOURCES=$HOME/armnn-devenv/caffe/build/src \
-DBUILD_CAFFE_PARSER=1 \
-DPROTOBUF_ROOT=$HOME/armnn-devenv/google/x86_64_pb_install/ \
target_link_libraries(armnnTfParser ${PROTOBUF_LIBRARIES})
endif()
-if(BUILD_ARMNN_QUANTIZER AND ARMCOMPUTEREF)
+if(BUILD_ARMNN_QUANTIZER AND ARMNNREF)
if(NOT BUILD_ARMNN_SERIALIZER)
message(ERROR, "In order to build the ArmNN Quantization Tool you must set BUILD_ARMNN_SERIALIZER = YES")
endif()
src/profiling/test/ProfilingTests.cpp
)
- if(ARMCOMPUTEREF)
+ if(ARMNNREF)
list(APPEND unittest_sources
src/armnn/test/DebugCallbackTest.cpp
src/armnn/test/QuantizerTest.cpp
)
endif()
- if(BUILD_TF_PARSER AND ARMCOMPUTEREF)
+ if(BUILD_TF_PARSER AND ARMNNREF)
list(APPEND unittest_sources
src/armnnTfParser/test/Activations.cpp
src/armnnTfParser/test/Addition.cpp
endif()
- if(BUILD_TF_LITE_PARSER AND ARMCOMPUTEREF)
+ if(BUILD_TF_LITE_PARSER AND ARMNNREF)
enable_language(ASM)
list(APPEND unittest_sources
src/armnnTfLiteParser/test/Activations.cpp
endif()
- if(BUILD_CAFFE_PARSER AND ARMCOMPUTEREF)
+ if(BUILD_CAFFE_PARSER AND ARMNNREF)
list(APPEND unittest_sources
src/armnnCaffeParser/test/TestAdd.cpp
src/armnnCaffeParser/test/TestConcat.cpp
)
endif()
- if(BUILD_ONNX_PARSER AND ARMCOMPUTEREF)
+ if(BUILD_ONNX_PARSER AND ARMNNREF)
list(APPEND unittest_sources
src/armnnOnnxParser/test/Constructor.cpp
src/armnnOnnxParser/test/CreateNetwork.cpp
)
endif()
- if(BUILD_ARMNN_QUANTIZER AND ARMCOMPUTEREF)
+ if(BUILD_ARMNN_QUANTIZER AND ARMNNREF)
list(APPEND unittest_sources
src/armnnQuantizer/test/QuantizationDataSetTests.cpp
)
endif()
- if(BUILD_ARMNN_SERIALIZER AND ARMCOMPUTEREF)
+ if(BUILD_ARMNN_SERIALIZER AND ARMNNREF)
enable_language(ASM)
list(APPEND unittest_sources
src/armnnSerializer/test/ActivationSerializationTests.cpp
target_link_libraries(UnitTests armnnCaffeParser)
endif()
- if(BUILD_ARMNN_SERIALIZER AND ARMCOMPUTEREF)
+ if(BUILD_ARMNN_SERIALIZER AND ARMNNREF)
target_include_directories(UnitTests SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src/armnnSerializer)
target_include_directories(UnitTests SYSTEM PRIVATE "${FLATBUFFERS_INCLUDE_PATH}")
target_link_libraries(UnitTests armnnSerializer)
endif()
- if(BUILD_ARMNN_QUANTIZER AND ARMCOMPUTEREF)
+ if(BUILD_ARMNN_QUANTIZER AND ARMNNREF)
target_include_directories(UnitTests SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src/armnnQuantizer)
target_include_directories(UnitTests SYSTEM PRIVATE "${FLATBUFFERS_INCLUDE_PATH}")
target_link_libraries(UnitTests armnnQuantizer armnnSerializer)
addDllCopyCommands(UnitTests)
endif()
-if (BUILD_ARMNN_SERIALIZER AND (BUILD_TF_PARSER OR BUILD_TF_LITE_PARSER OR BUILD_ONNX_PARSER OR BUILD_CAFFE_PARSER) AND ARMCOMPUTEREF)
+if (BUILD_ARMNN_SERIALIZER AND (BUILD_TF_PARSER OR BUILD_TF_LITE_PARSER OR BUILD_ONNX_PARSER OR BUILD_CAFFE_PARSER) AND ARMNNREF)
set(ArmnnConverter_sources
src/armnnConverter/ArmnnConverter.cpp)
option(BUILD_FOR_COVERAGE "Use no optimization and output .gcno and .gcda files" OFF)
option(ARMCOMPUTENEON "Build with ARM Compute NEON support" OFF)
option(ARMCOMPUTECL "Build with ARM Compute OpenCL support" OFF)
-option(ARMCOMPUTEREF "Build with ARM Compute reference support" OFF)
+option(ARMNNREF "Build with ArmNN reference support" OFF)
option(PROFILING_BACKEND_STREAMLINE "Forward the armNN profiling events to DS-5/Streamline as annotations" OFF)
# options used for heap profiling and leak checking
option(HEAP_PROFILING "Build with heap profiling enabled" OFF)
include_directories(SYSTEM ${HALF_INCLUDE})
endif()
-# ARM Compute reference backend
-if(ARMCOMPUTEREF)
- add_definitions(-DARMCOMPUTEREF_ENABLED)
+# ArmNN reference backend
+if(ARMNNREF)
+ add_definitions(-DARMNNREF_ENABLED)
endif()
# Streamline annotate
-if(BUILD_SAMPLE_APP AND ARMCOMPUTEREF)
+if(BUILD_SAMPLE_APP AND ARMNNREF)
add_executable(SimpleSample SimpleSample.cpp)
target_link_libraries(SimpleSample armnn ${CMAKE_THREAD_LIBS_INIT})
endif()
profiler->EnableProfiling(false);
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
WorkloadTestUtils.hpp
)
-if (ARMCOMPUTEREF)
+if (ARMNNREF)
list(APPEND armnnBackendsCommonUnitTests_sources
OptimizedNetworkTests.cpp
WorkloadDataValidation.cpp
ARMNN_SIMPLE_TEST_CASE(RuntimeInvalidDynamicBackends, RuntimeInvalidDynamicBackendsTestImpl);
ARMNN_SIMPLE_TEST_CASE(RuntimeInvalidOverridePath, RuntimeInvalidOverridePathTestImpl);
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
BOOST_TEST(supportedBackendIds.empty());
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
return CopyViaSplitterTestImpl<armnn::DataType::QuantisedSymm16>(workloadFactory, memoryManager, 1.0f, 0);
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// The LSTM test units are run only for the reference backend at the moment
OpenClTimerTest.cpp
)
-if (ARMCOMPUTEREF)
+if (ARMNNREF)
list(APPEND armnnClBackendUnitTests_sources
ClMemCopyTests.cpp
)
BOOST_TEST(validDataPointers);
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
MultiChannelTransposeConvolution2dTest<DataType::QuantisedAsymm8, DataType::Signed32>,
DataLayout::NHWC)
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// The ARMNN_COMPARE_REF_AUTO_TEST_CASE and the ARMNN_COMPARE_REF_FIXTURE_TEST_CASE test units are not available
// if the reference backend is not built
NeonWorkloadFactoryHelper.hpp
)
-if (ARMCOMPUTEREF)
+if (ARMNNREF)
list(APPEND armnnNeonBackendUnitTests_sources
NeonMemCopyTests.cpp
)
BOOST_TEST(validDataPointers);
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
BOOST_TEST(ConstantUsageFloat32Test(defaultBackends));
}
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// This test unit needs the reference backend, it's not available if the reference backend is not built
MultiChannelTransposeConvolution2dTest<DataType::QuantisedAsymm8, DataType::Signed32>,
DataLayout::NHWC)
-#if defined(ARMCOMPUTEREF_ENABLED)
+#if defined(ARMNNREF_ENABLED)
// The ARMNN_COMPARE_REF_AUTO_TEST_CASE and the ARMNN_COMPARE_REF_FIXTURE_TEST_CASE test units are not available
// if the reference backend is not built
# SPDX-License-Identifier: MIT
#
-if(ARMCOMPUTEREF)
+if(ARMNNREF)
list(APPEND armnnRefBackend_sources
RefBackend.cpp
RefBackend.hpp
add_subdirectory(${PROJECT_SOURCE_DIR}/src/backends/reference)
list(APPEND armnnLibraries armnnRefBackend)
-if(ARMCOMPUTEREF)
+if(ARMNNREF)
list(APPEND armnnLibraries armnnRefBackendWorkloads)
list(APPEND armnnUnitTestLibraries armnnRefBackendUnitTests)
else()