diff --git a/.ci/scripts/test_backend_linux.sh b/.ci/scripts/test_backend_linux.sh index ac10f3b94b8..92f449b634a 100755 --- a/.ci/scripts/test_backend_linux.sh +++ b/.ci/scripts/test_backend_linux.sh @@ -19,9 +19,12 @@ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") conda activate "${CONDA_ENV}" # Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate -#source .ci/scripts/setup-vulkan-linux-deps.sh +source .ci/scripts/setup-vulkan-linux-deps.sh + +# CMake options to use, in addition to the defaults. +EXTRA_BUILD_ARGS="-DEXECUTORCH_BUILD_VULKAN=ON" # We need the runner to test the built library. -PYTHON_EXECUTABLE=python .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release +PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$ARTIFACT_DIR/test_results.csv" diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 3769309332f..c9326a9a68d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -42,7 +42,7 @@ jobs: strategy: fail-fast: false matrix: - flow: [xnnpack, xnnpack_static_int8_per_channel] + flow: [vulkan, xnnpack, xnnpack_static_int8_per_channel] suite: [models, operators] with: ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} diff --git a/backends/test/suite/runner.py b/backends/test/suite/runner.py index 7a1fb64989a..3729d94cdf3 100644 --- a/backends/test/suite/runner.py +++ b/backends/test/suite/runner.py @@ -15,6 +15,7 @@ # Set of unsupported ops that should cause tests to be skipped UNSUPPORTED_PORTABLE_OPS = { "aten::_embedding_bag", + "aten::_adaptive_avg_pool2d", "aten::median", "aten::median.dim", "aten::round.decimals",