Skip to content

Commit 464deae

Browse files
committed
[Backend Tester] Run Vulkan tests in nightly CI
ghstack-source-id: ab8eb37 ghstack-comment-id: 3190266825 Pull-Request: #13445
1 parent 1f4c7e9 commit 464deae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.ci/scripts/backend-test-linux.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
1919
conda activate "${CONDA_ENV}"
2020

2121
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
22-
#source .ci/scripts/setup-vulkan-linux-deps.sh
22+
source .ci/scripts/setup-vulkan-linux-deps.sh
23+
24+
# CMake options to use, in addition to the defaults.
25+
EXTRA_BUILD_ARGS="-DEXECUTORCH_BUILD_VULKAN=ON"
2326

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

2730
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$ARTIFACT_DIR/test_results.csv"

.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: [xnnpack, xnnpack_static_int8_per_channel]
45+
flow: [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)