Skip to content

Commit

Permalink
Enable build of execute network in build tool.
Browse files Browse the repository at this point in the history
  * Help with issue #758

Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: Ic9f4ff54e1e5a26b16c3d869815d09036ce5806c
  • Loading branch information
catcor01 committed Mar 13, 2024
1 parent 7c75e33 commit 80ef511
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
14 changes: 9 additions & 5 deletions build-tool/scripts/build-armnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions build-tool/scripts/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 1 addition & 5 deletions build-tool/scripts/setup-armnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down

0 comments on commit 80ef511

Please sign in to comment.