This commit fixes build fail on x86_64, ix86, armv7hl tizen.
ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
nnas_find_package(TensorFlowSource EXACT 2.8.0 QUIET)
nnas_find_package(TensorFlowGEMMLowpSource EXACT 2.8.0 QUIET)
nnas_find_package(TensorFlowRuySource EXACT 2.8.0 QUIET)
+nnas_find_package(NEON2SSESource QUIET)
if(NOT TensorFlowSource_FOUND)
message(STATUS "Build luci-compute: FAILED (missing TensorFlowSource 2.8.0)")
return()
endif(NOT TensorFlowRuySource_FOUND)
+if(NOT NEON2SSESource_FOUND)
+ message(STATUS "Build luci-compute: FAILED (missing NEON2SSESource)")
+ return()
+endif(NOT NEON2SSESource_FOUND)
+
add_library(luci_compute INTERFACE)
target_include_directories(luci_compute SYSTEM INTERFACE "${TensorFlowSource_DIR}")
target_include_directories(luci_compute SYSTEM INTERFACE "${TensorFlowGEMMLowpSource_DIR}")
target_include_directories(luci_compute SYSTEM INTERFACE "${TensorFlowRuySource_DIR}")
+target_include_directories(luci_compute SYSTEM INTERFACE "${NEON2SSESource_DIR}")
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF)
option(BUILD_XNNPACK "Build XNNPACK" OFF)
+option(DOWNLOAD_OPENCL_HEADERS "Download opencl headers" OFF)
+
+option(BUILD_NPUD "Build NPU daemon" ON)
+# Do not allow to use CONFIG option on Tizen
+option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF)
option(BUILD_MINMAX_H5DUMPER "Build minmax h5dumper" OFF)
option(ENABLE_ONERT_TRAIN "Enable onert training feature" OFF)
Source3017: VULKAN.tar.gz
Source3018: XNNPACK.tar.gz
Source3019: FLATBUFFERS-2.0.tar.gz
+Source3020: NEON2SSE.tar.gz
%{!?build_type: %define build_type Release}
%{!?npud_build: %define npud_build 1}
tar -xf %{SOURCE3017} -C ./externals
tar -xf %{SOURCE3018} -C ./externals
tar -xf %{SOURCE3019} -C ./externals
+tar -xf %{SOURCE3020} -C ./externals
%build
%ifarch arm armv7l armv7hl aarch64 x86_64 %ix86
# nncc build
%if %{odc_build} == 1
-%{nncc_env} ./nncc configure -DBUILD_GTEST=OFF -DENABLE_TEST=OFF -DEXTERNALS_BUILD_THREADS=%{nproc} -DCMAKE_BUILD_TYPE=%{build_type} -DTARGET_OS=tizen \
+%{nncc_env} ./nncc configure -DBUILD_GTEST=OFF -DENABLE_TEST=OFF -DEXTERNALS_BUILD_THREADS=%{nproc} -DCMAKE_BUILD_TYPE=%{build_type} -DTARGET_ARCH=%{target_arch} -DTARGET_OS=tizen \
-DCMAKE_INSTALL_PREFIX=$(pwd)/%{overlay_path} \
-DBUILD_WHITELIST="luci;foder;pepper-csv2vec;loco;locop;logo;logo-core;mio-circle06;luci-compute;oops;hermes;hermes-std;angkor;pp;pepper-strcast;pepper-str"
%{nncc_env} ./nncc build %{build_jobs}