Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .ci/scripts/test_backend_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ if [[ "$FLOW" == *qnn* ]]; then
# Qualcomm build. TODO (gjcomer) Clean this up once the QNN pybinding integration is
# cleaned up.
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool cmake
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
# Source QNN configuration
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/qnn_config.sh"
# Download QNN_SDK. If already downloaded, export environment path
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/install_qnn_sdk.sh"
install_qnn

QNN_X86_LIB_DIR=`realpath build-x86/lib/`
QNN_SDK_ROOT="/tmp/qnn/2.28.0.241029"

export LD_LIBRARY_PATH"=$QNN_X86_LIB_DIR:$QNN_SDK_ROOT/lib/x86_64-linux-clang/:${LD_LIBRARY_PATH:-}"

# TODO Get SDK root from install scripts
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ jobs:
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh

mkdir -p aar-out
PYTHON_EXECUTABLE=python ANDROID_ABIS="arm64-v8a" BUILD_AAR_DIR=aar-out EXECUTORCH_BUILD_QNN=ON QNN_SDK_ROOT=/tmp/qnn/2.37.0.25072 EXECUTORCH_ANDROID_PROFILING=ON bash scripts/build_android_library.sh
# To find the QNN version
source backends/qualcomm/scripts/qnn_config.sh
PYTHON_EXECUTABLE=python ANDROID_ABIS="arm64-v8a" BUILD_AAR_DIR=aar-out EXECUTORCH_BUILD_QNN=ON QNN_SDK_ROOT=/tmp/qnn/${QNN_VERSION} EXECUTORCH_ANDROID_PROFILING=ON bash scripts/build_android_library.sh
mkdir -p extension/benchmark/android/benchmark/app/libs
cp aar-out/executorch.aar extension/benchmark/android/benchmark/app/libs
pushd extension/benchmark/android/benchmark
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/android-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ jobs:
source backends/qualcomm/scripts/qnn_config.sh
export QNN_SDK_ROOT="/tmp/qnn/${QNN_VERSION}"
export ANDROID_ABIS=arm64-v8a
GRADLE_ARGS+=" -DqnnVersion=2.37.0"
# To find the QNN version
source backends/qualcomm/scripts/qnn_config.sh
GRADLE_ARGS+=" -DqnnVersion=${QNN_MAJOR_VERSION}"
fi

# Build AAR Package
Expand Down
4 changes: 3 additions & 1 deletion backends/qualcomm/scripts/qnn_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
# LICENSE file in the root directory of this source tree.

# QNN SDK Configuration
QNN_VERSION="2.37.0.250724"
QNN_MAJOR_VERSION="2.37.0"
QNN_MINOR_VERSION="250724"
QNN_VERSION="${QNN_MAJOR_VERSION}.${QNN_MINOR_VERSION}"
QNN_ZIP_URL="https://softwarecenter.qualcomm.com/api/download/software/sdks/Qualcomm_AI_Runtime_Community/All/${QNN_VERSION}/v${QNN_VERSION}.zip"
Loading