Skip to content

Commit a6d5b98

Browse files
[SYCL][CI] Add ability to run perf tests in pre-commit CI (#12389)
Performance tests were added in #12372 to be executed in post-commit. This PR changes the pre-commit behavior. The tests will run if either some performance test is modified (to keep post-commit clean) or if `run-perf-tests` label is added to the PR.
1 parent 8959c3c commit a6d5b98

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/sycl_detect_changes.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
drivers:
5656
- devops/dependencies.json
5757
- devops/scripts/install_drivers.sh
58+
perf-tests:
59+
- sycl/test-e2e/PerformanceTests/**
5860
5961
- name: Set output
6062
id: result

.github/workflows/sycl_linux_precommit.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,37 @@ jobs:
9494
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
9595
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
9696

97+
98+
test-perf:
99+
needs: [build, detect_changes]
100+
if: |
101+
always() && !cancelled()
102+
&& needs.build.outputs.build_conclusion == 'success'
103+
&& (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
104+
|| contains(needs.detect_changes.outputs.filters, 'perf-tests'))
105+
strategy:
106+
fail-fast: false
107+
matrix:
108+
include:
109+
- name: Perf tests on Intel GEN12 Graphics system
110+
runner: '["Linux", "gen12"]'
111+
- name: Perf tests on Intel Arc A-Series Graphics system
112+
runner: '["Linux", "arc"]'
113+
uses: ./.github/workflows/sycl_linux_run_tests.yml
114+
with:
115+
name: ${{ matrix.name }}
116+
runner: ${{ matrix. runner }}
117+
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
118+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
119+
target_devices: all
120+
reset_gpu: true
121+
122+
env: '{"LIT_FILTER":"PerformanceTests/"}'
123+
extra_lit_opts: -a -j 1 --param enable-perf-tests=True
124+
125+
ref: ${{ github.sha }}
126+
merge_ref: ''
127+
128+
sycl_toolchain_artifact: sycl_linux_default
129+
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
130+
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}

0 commit comments

Comments
 (0)