aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2024-03-13 10:41:02 +0000
committerCathal Corbett <cathal.corbett@arm.com>2024-03-13 14:36:45 +0000
commit80ef511c23338c03460e6890240786dd40d06c59 (patch)
treeb187121b6998a5c43a01c1c72c06bb9fc5868992
parent7c75e336fbeeec052a1cb90c68d1caece332c176 (diff)
downloadarmnn-80ef511c23338c03460e6890240786dd40d06c59.tar.gz
Enable build of execute network in build tool.
* Help with issue https://github.com/ARM-software/armnn/issues/758 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ic9f4ff54e1e5a26b16c3d869815d09036ce5806c
-rwxr-xr-xbuild-tool/scripts/build-armnn.sh14
-rwxr-xr-xbuild-tool/scripts/install-packages.sh3
-rwxr-xr-xbuild-tool/scripts/setup-armnn.sh6
3 files changed, 10 insertions, 13 deletions
diff --git a/build-tool/scripts/build-armnn.sh b/build-tool/scripts/build-armnn.sh
index d9e89a285e..a73773b196 100755
--- a/build-tool/scripts/build-armnn.sh
+++ b/build-tool/scripts/build-armnn.sh
@@ -113,6 +113,11 @@ build_acl()
build_armnn()
{
+ if [ "$flag_clean" -eq 1 ]; then
+ echo -e "\n***** Clean flag detected: removing existing Arm NN build *****"
+ rm -rf "$ARMNN_BUILD_TARGET"
+ fi
+
mkdir -p "$ARMNN_BUILD_TARGET"
cd "$ARMNN_BUILD_TARGET"
@@ -148,11 +153,6 @@ build_armnn()
;;
esac
- if [ "$flag_clean" -eq 1 ]; then
- echo -e "\n***** Clean flag detected: removing existing Arm NN build *****"
- rm -rf "$ARMNN_BUILD_TARGET"
- fi
-
echo -e "\n***** Building Arm NN for $TARGET_ARCH *****"
local flatbuffers_root="$FLATBUFFERS_BUILD_TARGET"
@@ -186,6 +186,7 @@ build_armnn()
-DFLATC_DIR="$FLATBUFFERS_BUILD_HOST" \
-DONNX_GENERATED_SOURCES="$ONNX_BUILD_TARGET" \
-DPROTOBUF_ROOT="$protobuf_root" \
+ -DBUILD_TESTS=1 \
"$armnn_cmake_args" \
"$ARMNN_SRC"
@@ -234,6 +235,9 @@ build_armnn()
cp -r "$SOURCE_DIR"/armnn/delegate/opaque/include ./include/armnnDelegate/armnn/delegate/opaque/
fi
+ # move ExecuteNetwork to outer directory
+ mv tests/ExecuteNetwork .
+
echo -e "\n***** Built Arm NN for $TARGET_ARCH *****"
local tarball_path="$ROOT_DIR/armnn_$ARMNN_BUILD_DIR_NAME.tar.gz"
diff --git a/build-tool/scripts/install-packages.sh b/build-tool/scripts/install-packages.sh
index 4a461a0d55..dea138be33 100755
--- a/build-tool/scripts/install-packages.sh
+++ b/build-tool/scripts/install-packages.sh
@@ -120,9 +120,6 @@ fi
echo -e "\n***** $name: Installing system-wide packages required by setup-armnn.sh and build-armnn.sh *****"
echo -e "\nINFO: This script downloads and builds CMake from source in the current directory from which this script is called"
echo -e "\nINFO: CMake and other apt packages will be installed system-wide once this script has completed execution"
-echo -e "\nScript execution will begin in 10 seconds..."
-
-sleep 10
install_apt_packages
diff --git a/build-tool/scripts/setup-armnn.sh b/build-tool/scripts/setup-armnn.sh
index a4453560ec..05d1280eed 100755
--- a/build-tool/scripts/setup-armnn.sh
+++ b/build-tool/scripts/setup-armnn.sh
@@ -437,7 +437,7 @@ echo -e "\nINFO: Displaying configuration information before execution of $name"
echo " target-arch: $TARGET_ARCH"
echo " host-arch: $HOST_ARCH"
echo "tflite-classic-delegate: $flag_tflite_classic_delegate"
-echo "tflite-opaque-delegate : $flag_tflite_opaque_delegate"
+echo " tflite-opaque-delegate: $flag_tflite_opaque_delegate"
echo " tflite-parser: $flag_tflite_parser"
echo " onnx-parser: $flag_onnx_parser"
echo " num-threads: $NUM_THREADS"
@@ -449,10 +449,6 @@ if check_if_repository .; then
echo -e "\n***** WARNING: Running script inside a git repository. To avoid nested repos, call this script from outside of this repo. *****"
fi
-echo -e "\nScript execution will begin in 10 seconds..."
-
-sleep 10
-
mkdir -p "$SOURCE_DIR"
mkdir -p "$BUILD_DIR"