aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2022-12-07 19:28:18 +0000
committerMatthew Sloyan <matthew.sloyan@arm.com>2022-12-14 19:57:43 +0000
commit67fd526f8f7c79803d514a6045454049104eced9 (patch)
treec32c6a220b276d246d034ed940c94b37324e40f8 /cmake
parent404369b13f6e603bba3f01f945672bd89104bab7 (diff)
downloadarmnn-67fd526f8f7c79803d514a6045454049104eced9.tar.gz
Update TOSA Reference Backend IsLayerSupported
* Replace current IsLayerSupported checks with ModelRunner for better validation. * Added options to be able to disable the output from the TOSA Reference Model during layer support. * Updated layer support tests to reflect actual support. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: Iaea17343d0ad51b495477024c44a34d9335d1438
Diffstat (limited to 'cmake')
-rw-r--r--cmake/GlobalConfig.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index 5bedee92ea..dd20e15076 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -26,6 +26,7 @@ option(TF_LITE_GENERATED_PATH "Tensorflow lite generated C++ schema location" OF
option(FLATBUFFERS_ROOT "Location where the flatbuffers 'include' and 'lib' folders to be found" Off)
option(TOSA_SERIALIZATION_LIB_ROOT "Location where the TOSA Serialization Library 'include' and 'lib' folders can be found" OFF)
option(TOSA_REFERENCE_MODEL_ROOT "Location where the TOSA Reference Model 'include' and 'lib' folders can be found" OFF)
+option(TOSA_REFERENCE_MODEL_OUTPUT "TOSA Reference Model output is printed during layer support checks" ON)
option(DYNAMIC_BACKEND_PATHS "Colon seperated list of paths where to load the dynamic backends from" "")
option(SAMPLE_DYNAMIC_BACKEND "Include the sample dynamic backend and its tests in the build" OFF)
option(BUILD_GATORD_MOCK "Build the Gatord simulator for external profiling testing." ON)
@@ -362,6 +363,10 @@ if(ARMNNTOSAREF)
NAMES tosa_reference_model_lib.a tosa_reference_model_lib
HINTS ${TOSA_REFERENCE_MODEL_ROOT}/lib /usr/local/lib /usr/lib)
message(STATUS "TOSA Reference Model set to ${TOSA_REFERENCE_MODEL_LIB}")
+
+ if(TOSA_REFERENCE_MODEL_OUTPUT)
+ add_definitions("-DTOSA_REFERENCE_MODEL_OUTPUT=1")
+ endif()
endif()
# This is the root for the dynamic backend tests to search for dynamic