From ec34b6347bb3dc8141c8a0b8ad82d475ce4431da Mon Sep 17 00:00:00 2001 From: cccclai Date: Fri, 21 Nov 2025 13:42:54 -0800 Subject: [PATCH 1/2] Disable QNN build option for the default x86 build seems like qnn download sdk is very unreliable. Trying to fix it then re-enable it --- tools/cmake/preset/pybind.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/preset/pybind.cmake b/tools/cmake/preset/pybind.cmake index a0d06d74d17..699a7c50358 100644 --- a/tools/cmake/preset/pybind.cmake +++ b/tools/cmake/preset/pybind.cmake @@ -37,7 +37,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") set_overridable_option(EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER ON) set_overridable_option(EXECUTORCH_BUILD_EXTENSION_LLM ON) if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64|i.86)$") - set_overridable_option(EXECUTORCH_BUILD_QNN ON) + set_overridable_option(EXECUTORCH_BUILD_QNN OFF) endif() elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WIN32" From 31b7affcb5bd6ebf85ed8cebe58fed265311812d Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Fri, 21 Nov 2025 14:03:42 -0800 Subject: [PATCH 2/2] disable qnn wheel package job --- .github/workflows/pull.yml | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 30666e13006..c9dd6a0b734 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -13,32 +13,32 @@ concurrency: cancel-in-progress: true jobs: - test-qnn-wheel-packages-linux: - name: test-qnn-wheel-packages-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main - permissions: - id-token: write - contents: read - strategy: - fail-fast: false - matrix: - python-version: [ "3.10", "3.11", "3.12" ] - with: - runner: linux.2xlarge - docker-image: ci-image:executorch-ubuntu-22.04-qnn-sdk - submodules: 'recursive' - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - timeout: 180 - script: | - # The generic Linux job chooses to use base env, not the one setup by the image - CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") - conda activate "${CONDA_ENV}" + # test-qnn-wheel-packages-linux: + # name: test-qnn-wheel-packages-linux + # uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + # permissions: + # id-token: write + # contents: read + # strategy: + # fail-fast: false + # matrix: + # python-version: [ "3.10", "3.11", "3.12" ] + # with: + # runner: linux.2xlarge + # docker-image: ci-image:executorch-ubuntu-22.04-qnn-sdk + # submodules: 'recursive' + # ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} + # timeout: 180 + # script: | + # # The generic Linux job chooses to use base env, not the one setup by the image + # CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") + # conda activate "${CONDA_ENV}" - # Create a clean env for each python version - conda create -y -n test_env_${{ matrix.python-version }} python=${{ matrix.python-version }} - conda activate test_env_${{ matrix.python-version }} + # # Create a clean env for each python version + # conda create -y -n test_env_${{ matrix.python-version }} python=${{ matrix.python-version }} + # conda activate test_env_${{ matrix.python-version }} - PYTHON_EXECUTABLE=python bash .ci/scripts/test_wheel_package_qnn.sh "${{ matrix.python-version }}" + # PYTHON_EXECUTABLE=python bash .ci/scripts/test_wheel_package_qnn.sh "${{ matrix.python-version }}" test-setup-linux-gcc: name: test-setup-linux-gcc