File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ # All rights reserved.
4
+ #
5
+ # This source code is licensed under the BSD-style license found in the
6
+ # LICENSE file in the root directory of this source tree.
7
+ set -eux
8
+
9
+ # shellcheck source=/dev/null
10
+ source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
11
+
12
+ read -r SUITE FLOW < <( parse_args " $@ " )
13
+
14
+ # The generic Linux job chooses to use base env, not the one setup by the image
15
+ eval " $( conda shell.bash hook) "
16
+ CONDA_ENV=$( conda env list --json | jq -r " .envs | .[-1]" )
17
+ conda activate " ${CONDA_ENV} "
18
+
19
+ # Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
20
+ # source .ci/scripts/setup-vulkan-linux-deps.sh
21
+
22
+ # We need the runner to test the built library.
23
+ .ci/scripts/setup-linux.sh --build-tool cmake --build-type Release
24
+
25
+ python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report test_results.csv
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set -exu
11
11
source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
12
12
13
13
read -r BUILD_TOOL BUILD_MODE EDITABLE < <( parse_args " $@ " )
14
+ echo " Build tool: $BUILD_TOOL , Mode: $BUILD_MODE "
14
15
15
16
# As Linux job is running inside a Docker container, all of its dependencies
16
17
# have already been installed, so we use PyTorch build from source here instead
Original file line number Diff line number Diff line change 36
36
uses : ./.github/workflows/_link_check.yml
37
37
with :
38
38
ref : ${{ github.sha }}
39
+
40
+ backend-test-linux :
41
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
42
+ strategy :
43
+ fail-fast : false
44
+ matrix :
45
+ flow : [xnnpack, xnnpack_static_int8_per_channel]
46
+ suite : [models, operators]
47
+ with :
48
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
49
+ runner : linux.2xlarge
50
+ docker-image : ci-image:executorch-ubuntu-22.04-clang12
51
+ submodules : recursive
52
+ timeout : 90
53
+ script : |
54
+ set -eux
55
+ .ci/scripts/backend-test-linux.sh --suite "${{ matrix.suite }}" --flow "${{ matrix.flow }}"
You can’t perform that action at this time.
0 commit comments