Skip to content

Commit e4b8e7c

Browse files
committed
test uplevel
1 parent 9c73b5d commit e4b8e7c

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.ci/scripts/test_qnn_static_llama.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ set -euxo pipefail
99

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

12+
# Get the absolute path of this script
13+
SCRIPT_DIR="$( cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pwd -P )"
14+
15+
# Source QNN configuration
16+
source "${SCRIPT_DIR}../../backends/qualcomm/scripts/qnn_config.sh"
17+
1218
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
1319
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
1420
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"

backends/qualcomm/scripts/install_qnn_sdk.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ 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
5157

5258
# Clean up any previous installation
5359
if [ -d "${QNN_INSTALLATION_DIR}" ]; then
@@ -79,7 +85,7 @@ install_qnn() {
7985
ls -lah "${QNN_INSTALLATION_DIR}"
8086

8187
# Set QNN_SDK_ROOT environment variable
82-
export QNN_SDK_ROOT="${QNN_INSTALLATION_DIR}"
88+
export QNN_SDK_ROOT="${QNN_INSTALLATION_DIR}/${QNN_VERSION}"
8389
echo "Set QNN_SDK_ROOT=${QNN_SDK_ROOT}"
8490
}
8591

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.28.0.241029"
10-
QNN_ZIP_URL="https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v${QNN_VERSION}.zip"
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"
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.28"
2+
return "2.37"

0 commit comments

Comments
 (0)