Currently it does not use parallel build in build nncc-package. It is so slow.
It will use half of cores that is available in build machine.
It uses half of core since we don't want to allocate all cores in CI machine.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
${EXTRA_OPTIONS[@]} \
"${NNAS_PROJECT_PATH}/infra/nncc"
-cmake --build . -- all
+NPROC=$(cat /proc/cpuinfo | grep -c processor)
+cmake --build . -- -j$((NPROC/2)) all
cmake --build . -- install
-
# Install NN Package tools
NNPKG_INSTALL_PREFIX="${NNAS_INSTALL_PREFIX}"