Skip to content

Commit 863fd9a

Browse files
committed
fi
1 parent 37679c8 commit 863fd9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.ci/scripts/build-qnn-sdk.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ set -o xtrace
1111

1212
build_qnn_backend() {
1313
echo "Start building qnn backend."
14-
export ANDROID_NDK_ROOT=${ANDROID_NDK_ROOT:-/opt/ndk}
15-
export QNN_SDK_ROOT=${QNN_SDK_ROOT:-/tmp/qnn/2.28.0.241029}
14+
# Get the absolute path of this script
15+
SCRIPT_DIR="$( cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pwd -P )"
16+
17+
# Source QNN configuration from the same directory
18+
source "${SCRIPT_DIR}/install_qnn_sdk.sh"
1619
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
1720

1821
parallelism=$(( $(nproc) - 1 ))

0 commit comments

Comments
 (0)