File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
backends/qualcomm/scripts
shim_et/xplat/executorch/backends/qualcomm Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ set -euxo pipefail
99
1010source " $( 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+
1218export EXECUTORCH_ROOT=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) /.." && pwd) "
1319export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
1420export LD_LIBRARY_PATH=" ${QNN_SDK_ROOT} /lib/x86_64-linux-clang"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11def get_qnn_library_version ():
2- return "2.28 "
2+ return "2.37 "
You can’t perform that action at this time.
0 commit comments