Skip to content

Commit 2ba2f47

Browse files
kirklandsignhuydhn
andauthored
Allow user to define ANDROID_ABIS in build_android_llm_demo.sh
Allow build arm64-v8a only Pull Request resolved: #5109 --------- Co-authored-by: Huy Do <[email protected]>
1 parent 91089db commit 2ba2f47

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/android-perf.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@ jobs:
230230
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
231231
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
232232
fi
233-
233+
234234
# TODO: This needs to be replaced with a generic loader .apk
235235
# Build LLM Demo for Android
236+
export ANDROID_ABIS="arm64-v8a"
236237
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
237238
238239
# Upload artifacts to S3. The artifacts are needed not only by the device farm but also TorchChat

build/build_android_llm_demo.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ collect_artifacts_to_be_uploaded() {
139139

140140
BUILD_AAR_DIR="$(mktemp -d)"
141141
export BUILD_AAR_DIR
142-
ANDROID_ABIS=("arm64-v8a" "x86_64")
142+
if [ -z "$ANDROID_ABIS" ]; then
143+
ANDROID_ABIS=("arm64-v8a" "x86_64")
144+
fi
143145
export ANDROID_ABIS
144146

145147
ARTIFACTS_DIR_NAME="$1"

0 commit comments

Comments
 (0)