Skip to content

Commit bf39349

Browse files
committed
[Backend Tester] Add QNN test flow to nightly CI
ghstack-source-id: 3526cc6 ghstack-comment-id: 3194008771 Pull-Request: #13468
1 parent ce84335 commit bf39349

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.ci/scripts/test_backend_linux.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,24 @@ eval "$(conda shell.bash hook)"
1818
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
1919
conda activate "${CONDA_ENV}"
2020

21-
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
22-
source .ci/scripts/setup-vulkan-linux-deps.sh
23-
2421
# CMake options to use, in addition to the defaults.
25-
EXTRA_BUILD_ARGS="-DEXECUTORCH_BUILD_VULKAN=ON"
22+
EXTRA_BUILD_ARGS=""
23+
24+
if [[ "$FLOW" =~ ".*qualcomm.*"]]
25+
# Setup QNN sdk and deps
26+
./install_requirements.sh --use-pt-pinned-commit
27+
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
28+
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
29+
30+
EXTRA_BUILD_ARGS+=" -DEXECUTORCH_BUILD_QNN=ON"
31+
fi
32+
33+
if [[ "$FLOW" =~ ".*vulkan.*"]]
34+
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
35+
source .ci/scripts/setup-vulkan-linux-deps.sh
36+
37+
EXTRA_BUILD_ARGS+=" -DEXECUTORCH_BUILD_VULKAN=ON"
38+
fi
2639

2740
# We need the runner to test the built library.
2841
PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
flow: [vulkan, xnnpack, xnnpack_static_int8_per_channel]
45+
flow: [qualcomm, vulkan, xnnpack, xnnpack_static_int8_per_channel]
4646
suite: [models, operators]
4747
with:
4848
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

0 commit comments

Comments
 (0)