- /runtime/libs/misc
- /runtime/libs/ndarray
- /runtime/onert
- - /runtime/service/npud/tests
- /tests/nnfw_api
testFile:
option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" ON)
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" ON)
option(INSTALL_TEST_SCRIPTS "Install test scripts" ON)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
option(BUILD_MINMAX_H5DUMPER "Build minmax h5dumper" OFF)
#
# Default build configuration for contrib
option(BUILD_MLAPSE "Build mlapse benchmark toolkit" OFF)
option(BUILD_GPU_CL "Build gpu_cl backend" OFF)
option(BUILD_TENSORFLOW_LITE_GPU "Build TensorFlow Lite GPU delegate from the downloaded source" OFF)
+option(BUILD_NPUD "Build NPU daemon" OFF)
+option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
#
# Default build configuration for tools
#
option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" OFF)
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
# Tizen boost package does not have static library
option(Boost_USE_STATIC_LIBS "Determine whether or not static linking for Boost" OFF)
option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" OFF)
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
# Tizen boost package does not have static library
option(Boost_USE_STATIC_LIBS "Determine whether or not static linking for Boost" OFF)
option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" OFF)
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
# Tizen boost package does not have static library
option(Boost_USE_STATIC_LIBS "Determine whether or not static linking for Boost" OFF)
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF)
option(BUILD_XNNPACK "Build XNNPACK" OFF)
-
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
option(BUILD_XNNPACK "Build XNNPACK" OFF)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
# Tizen boost package does not have static library
option(Boost_USE_STATIC_LIBS "Determine whether or not static linking for Boost" OFF)
option(BUILD_XNNPACK "Build XNNPACK" OFF)
-option(BUILD_NPUD "Build NPU daemon" OFF)
-# Do not allow to use CONFIG option on Tizen
-option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
# Tizen boost package does not have static library
option(Boost_USE_STATIC_LIBS "Determine whether or not static linking for Boost" OFF)
#!/bin/bash
-set -eo pipefail
-
-CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-ROOT_PATH="$(cd ${CURRENT_PATH}/../../ && pwd)"
-
-# Install path on CI
-INSTALL_PATH="$ROOT_PATH/Product/out"
-MODEL_PATH="${INSTALL_PATH}/npud-gtest/models"
-
-# Install dbus configuration file
-DBUS_CONF="${INSTALL_PATH}/share/org.tizen.npud.conf"
-mkdir -p /usr/share/dbus-1/system.d/
-cp ${DBUS_CONF} /usr/share/dbus-1/system.d/
-
-service dbus restart
-
-function TestPrepared()
-{
- if [[ -z "${MODELFILE}" ]]; then
- echo "Model file is not set. Try to use default setting."
- exit 1
- fi
-
- mkdir -p ${MODEL_PATH}
- if [[ "${MODELFILE: -7}" == ".tar.gz" ]]; then
- curl -o model.tar.gz -kLsSO ${MODELFILE}
- tar -zxf model.tar.gz -C ${MODEL_PATH}
- else
- echo "The file format is not supported."
- echo "Supported format: tar.gz"
- exit 1
- fi
-}
-
-function TestCleanUp()
-{
- rm -rf ${MODEL_PATH}
-}
-
-function NpudTest()
-{
- pushd ${ROOT_PATH} > /dev/null
-
- $INSTALL_PATH/npud-gtest/npud_gtest
- EXITCODE=$?
- if [ ${EXITCODE} -ne 0 ]; then
- exit ${EXITCODE}
- fi
-
- popd > /dev/null
-}
-
-TestPrepared
-
-DEVICE_MODULE_PATH=${INSTALL_PATH}/lib GTEST_MODEL_PATH=${MODEL_PATH} NpudTest
-
-TestCleanUp
+# DO NOTHING
+# THIS FILE WILL BE REMOVED AFTER JENKINS SCRIPT IS UPDATED.
+exit 0
Source3016: XNNPACK.tar.gz
%{!?build_type: %define build_type Release}
-%{!?npud_build: %define npud_build 0}
%{!?trix_support: %define trix_support 1}
%{!?odc_build: %define odc_build 1}
%{!?coverage_build: %define coverage_build 0}
%define test_build 1
%endif
-%ifarch riscv64
-# Disable npud on risc-v
-# TODO Enable on risc-v
-%define npud_build 0
-%endif
-
BuildRequires: cmake
Requires(post): /sbin/ldconfig
BuildRequires: gtest-devel
%endif
-%if %{npud_build} == 1
-BuildRequires: pkgconfig(glib-2.0)
-%endif
-
%if %{trix_support} == 1
BuildRequires: pkgconfig(npu-engine)
%endif
# TODO Use release runtime pacakge for test
%endif
-%if %{npud_build} == 1
-%package npud
-Summary: NPU daemon
-
-%description npud
-NPU daemon for optimal management of NPU hardware
-%endif
-
%ifarch armv7l
%define target_arch armv7l
%endif
# Set option for configuration
%define option_config %{nil}
%if %{config_support} == 1
-%if %{npud_build} == 1
-# ENVVAR_NPUD_CONFIG: Use environment variable for npud configuration and debug
-%define option_config -DENVVAR_NPUD_CONFIG=ON
-%endif # npud_build
%endif # config_support
%if %{coverage_build} == 1
install -m 644 build/out/lib/nnfw/odc/*.so %{buildroot}%{_libdir}/nnfw/odc
%endif # odc_build
-%if %{npud_build} == 1
-install -m 755 build/out/bin/npud %{buildroot}%{_bindir}
-
-%if %{test_build} == 1
-mkdir -p %{test_install_path}/npud-gtest
-install -m 755 build/out/npud-gtest/* %{test_install_path}/npud-gtest
-%endif # test_build
-
-%endif # npud_build
-
%endif
%post -p /sbin/ldconfig
%endif # arm armv7l armv7hl aarch64
%endif # test_build
-%if %{npud_build} == 1
-%files npud
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%ifarch arm armv7l armv7hl aarch64 x86_64 %ix86 riscv64
-%{_bindir}/npud
-%endif # arm armv7l armv7hl aarch64 x86_64 %ix86
-%endif # npud_build
-
%if %{odc_build} == 1
%files odc
%manifest %{name}.manifest
+++ /dev/null
-add_subdirectories()