Skip to content

Commit 7d14a4e

Browse files
committed
[Backend Tester] Add ARM TOSA flow
ghstack-source-id: 599e2da ghstack-comment-id: 3277010040 Pull-Request: #14190
1 parent 5b77093 commit 7d14a4e

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.ci/scripts/test_backend_linux.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ if [[ "$FLOW" == *qnn* ]]; then
4141
fi
4242

4343
if [[ "$FLOW" == *vulkan* ]]; then
44-
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
44+
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate.
4545
source .ci/scripts/setup-vulkan-linux-deps.sh
4646

4747
EXTRA_BUILD_ARGS+=" -DEXECUTORCH_BUILD_VULKAN=ON"
4848
fi
4949

50+
if [[ "$FLOW" == *tosa* ]]; then
51+
# Setup ARM deps.
52+
.ci/scripts/setup-arm-baremetal-tools.sh
53+
fi
54+
5055
# We need the runner to test the built library.
5156
PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release --editable true
5257

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test XNNPACK Backend
2+
3+
on:
4+
schedule:
5+
- cron: 0 2 * * *
6+
push:
7+
tags:
8+
- ciflow/nightly/*
9+
pull_request:
10+
paths:
11+
- .github/workflows/test-backend-ethos.yml
12+
- .github/workflows/_test_backend.yml
13+
workflow_dispatch:
14+
15+
concurrency:
16+
group: ${{ github.workflow }}--${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
test-xnnpack:
21+
uses: ./.github/workflows/_test_backend.yml
22+
with:
23+
backend: xnnpack
24+
flows: '["tosa"]'
25+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
26+
timeout: 120
27+
run-linux: true

0 commit comments

Comments
 (0)