Skip to content

Commit ca0f493

Browse files
committed
Revert "Qualcomm AI Engine Direct - Test QNN2.37 uplevel (pytorch#13352)"
This reverts commit c3f8d64.
1 parent b759ae8 commit ca0f493

File tree

9 files changed

+15
-29
lines changed

9 files changed

+15
-29
lines changed

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

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

1212
build_qnn_backend() {
1313
echo "Start building qnn backend."
14-
# Source QNN configuration
15-
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/install_qnn_sdk.sh"
16-
setup_android_ndk
17-
install_qnn
14+
export ANDROID_NDK_ROOT=${ANDROID_NDK_ROOT:-/opt/ndk}
15+
export QNN_SDK_ROOT=${QNN_SDK_ROOT:-/tmp/qnn/2.28.0.241029}
1816
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
1917

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

.ci/scripts/setup-qnn-deps.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ set -ex
1010
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/install_qnn_sdk.sh"
1111

1212
setup_libcpp 12
13-
setup_android_ndk
1413
install_qnn

.ci/scripts/test_llama.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,8 @@ echo "COREML option ${COREML}"
119119

120120
if [[ "${MODE}" =~ .*qnn.* ]]; then
121121
QNN=ON
122-
123-
# Download QNN_SDK. If already downloaded, export environment path
124-
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/install_qnn_sdk.sh"
125-
install_qnn
126-
127122
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
123+
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
128124
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"
129125
export PYTHONPATH=".."
130126
cp schema/program.fbs exir/_serialize/program.fbs

.ci/scripts/test_qnn_static_llama.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@ set -euxo pipefail
99

1010
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
1111

12-
# Source QNN configuration
13-
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/qnn_config.sh"
14-
# Download QNN_SDK. If already downloaded, export environment path
15-
source "$(dirname "${BASH_SOURCE[0]}")/../../backends/qualcomm/scripts/install_qnn_sdk.sh"
16-
install_qnn
17-
1812
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
13+
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
1914
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"
2015
export PYTHONPATH=".."
2116
cp schema/program.fbs exir/_serialize/program.fbs

.github/workflows/android-perf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ jobs:
292292
export.output_name="${OUT_ET_MODEL_NAME}.pte"
293293
ls -lh "${OUT_ET_MODEL_NAME}.pte"
294294
elif [[ ${{ matrix.config }} == "llama3_qnn_htp" ]]; then
295-
export QNN_SDK_ROOT=/tmp/qnn/2.37.0.25072
295+
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
296296
export LD_LIBRARY_PATH=$QNN_SDK_ROOT/lib/x86_64-linux-clang/
297297
export PYTHONPATH=$(pwd)/..
298298
@@ -432,7 +432,7 @@ jobs:
432432
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
433433
434434
mkdir -p aar-out
435-
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
435+
PYTHON_EXECUTABLE=python ANDROID_ABIS="arm64-v8a" BUILD_AAR_DIR=aar-out EXECUTORCH_BUILD_QNN=ON QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029 EXECUTORCH_ANDROID_PROFILING=ON bash scripts/build_android_library.sh
436436
mkdir -p extension/benchmark/android/benchmark/app/libs
437437
cp aar-out/executorch.aar extension/benchmark/android/benchmark/app/libs
438438
pushd extension/benchmark/android/benchmark

.github/workflows/android-release-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
source backends/qualcomm/scripts/qnn_config.sh
105105
export QNN_SDK_ROOT="/tmp/qnn/${QNN_VERSION}"
106106
export ANDROID_ABIS=arm64-v8a
107-
GRADLE_ARGS+=" -DqnnVersion=2.37.0"
107+
GRADLE_ARGS+=" -DqnnVersion=2.28.0"
108108
fi
109109
110110
# Build AAR Package

backends/qualcomm/scripts/install_qnn_sdk.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ install_qnn() {
4848

4949
echo "Start installing qnn v${QNN_VERSION}"
5050
QNN_INSTALLATION_DIR="/tmp/qnn"
51-
52-
if [ -d "${QNN_INSTALLATION_DIR}/${QNN_VERSION}" ]; then
53-
echo "QNN SDK already installed at ${QNN_INSTALLATION_DIR}/${QNN_VERSION}"
54-
export QNN_SDK_ROOT="${QNN_INSTALLATION_DIR}/${QNN_VERSION}"
55-
return
56-
fi
5751

5852
# Clean up any previous installation
5953
if [ -d "${QNN_INSTALLATION_DIR}" ]; then
@@ -85,7 +79,7 @@ install_qnn() {
8579
ls -lah "${QNN_INSTALLATION_DIR}"
8680

8781
# Set QNN_SDK_ROOT environment variable
88-
export QNN_SDK_ROOT="${QNN_INSTALLATION_DIR}/${QNN_VERSION}"
82+
export QNN_SDK_ROOT="${QNN_INSTALLATION_DIR}"
8983
echo "Set QNN_SDK_ROOT=${QNN_SDK_ROOT}"
9084
}
9185

@@ -153,3 +147,7 @@ setup_libcpp() {
153147

154148
echo "libc++ installed to ${INSTALL_DIR}"
155149
}
150+
151+
setup_libcpp 12
152+
setup_android_ndk
153+
install_qnn

backends/qualcomm/scripts/qnn_config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
# LICENSE file in the root directory of this source tree.
77

88
# QNN SDK Configuration
9-
QNN_VERSION="2.37.0.250724"
10-
QNN_ZIP_URL="https://softwarecenter.qualcomm.com/api/download/software/sdks/Qualcomm_AI_Runtime_Community/All/${QNN_VERSION}/v${QNN_VERSION}.zip"
9+
QNN_VERSION="2.28.0.241029"
10+
QNN_ZIP_URL="https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v${QNN_VERSION}.zip"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def get_qnn_library_version():
2-
return "2.37"
2+
return "2.28"

0 commit comments

Comments
 (0)