Skip to content

Commit eec27d3

Browse files
committed
Turn off QNN in cuda.yml
1 parent 4ce2ab4 commit eec27d3

File tree

2 files changed

+4
-38
lines changed

2 files changed

+4
-38
lines changed

.github/workflows/cuda.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
# Test ExecuTorch CUDA build - ExecuTorch will automatically detect CUDA version
4646
# and install the appropriate PyTorch wheel
47-
source .ci/scripts/test-cuda-build.sh "${{ matrix.cuda-version }}"
47+
CMAKE_ARGS="-DEXECUTORCH_BUILD_QNN=OFF" source .ci/scripts/test-cuda-build.sh "${{ matrix.cuda-version }}"
4848
4949
# This job will fail if any of the CUDA versions fail
5050
check-all-cuda-builds:
@@ -83,7 +83,7 @@ jobs:
8383
script: |
8484
set -eux
8585
86-
PYTHON_EXECUTABLE=python ./install_executorch.sh
86+
CMAKE_ARGS="-DEXECUTORCH_BUILD_QNN=OFF" PYTHON_EXECUTABLE=python ./install_executorch.sh
8787
export LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
8888
PYTHON_EXECUTABLE=python source .ci/scripts/test_model.sh "${{ matrix.model }}" cmake cuda
8989
@@ -132,7 +132,7 @@ jobs:
132132
set -eux
133133
134134
echo "::group::Setup ExecuTorch"
135-
./install_executorch.sh
135+
CMAKE_ARGS="-DEXECUTORCH_BUILD_QNN=OFF" ./install_executorch.sh
136136
echo "::endgroup::"
137137
138138
echo "::group::Setup Huggingface"

backends/qualcomm/CMakeLists.txt

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ if(EXECUTORCH_BUILD_PYBIND)
3434
${_qnn_default_sdk_dir}
3535
CACHE PATH "Qualcomm SDK root directory" FORCE
3636
)
37-
<<<<<<< HEAD
3837
else()
3938
message(STATUS "Downloading Qualcomm SDK")
4039
execute_process(
4140
COMMAND
42-
${Python3_EXECUTABLE}
41+
${PYTHON_EXECUTABLE}
4342
${EXECUTORCH_SOURCE_DIR}/backends/qualcomm/scripts/download_qnn_sdk.py
4443
--dst-folder ${_qnn_default_sdk_dir}
4544
--print-sdk-path
@@ -56,39 +55,6 @@ if(EXECUTORCH_BUILD_PYBIND)
5655
FATAL_ERROR
5756
"Failed to download Qualcomm SDK. stdout: ${_qnn_sdk_download_output}\n"
5857
"stderr: ${_qnn_sdk_download_error}"
59-
=======
60-
message(STATUS "Found cached Qualcomm SDK at ${_qnn_default_sdk_dir}")
61-
set(QNN_SDK_ROOT
62-
${_qnn_default_sdk_dir}
63-
CACHE PATH "Qualcomm SDK root directory" FORCE
64-
)
65-
else()
66-
message(STATUS "QNN_SDK_ROOT not provided, downloading Qualcomm SDK")
67-
execute_process(
68-
COMMAND
69-
${PYTHON_EXECUTABLE}
70-
${EXECUTORCH_SOURCE_DIR}/backends/qualcomm/scripts/download_qnn_sdk.py
71-
--dst-folder ${_qnn_default_sdk_dir}
72-
--print-sdk-path
73-
WORKING_DIRECTORY ${EXECUTORCH_SOURCE_DIR}
74-
RESULT_VARIABLE _qnn_sdk_download_result
75-
OUTPUT_VARIABLE _qnn_sdk_download_output
76-
ERROR_VARIABLE _qnn_sdk_download_error
77-
OUTPUT_STRIP_TRAILING_WHITESPACE
78-
)
79-
if(NOT _qnn_sdk_download_result EQUAL 0 OR _qnn_sdk_download_output
80-
STREQUAL ""
81-
)
82-
message(
83-
FATAL_ERROR
84-
"Failed to download Qualcomm SDK. stdout: ${_qnn_sdk_download_output}\n"
85-
"stderr: ${_qnn_sdk_download_error}"
86-
)
87-
endif()
88-
set(QNN_SDK_ROOT
89-
${_qnn_sdk_download_output}
90-
CACHE PATH "Qualcomm SDK root directory" FORCE
91-
>>>>>>> e13507fb51 (Retry)
9258
)
9359
endif()
9460
set(QNN_SDK_ROOT

0 commit comments

Comments
 (0)