Skip to content

Commit fd1342e

Browse files
authored
[CI] Enable BMG benchmarking in nightly (#18351)
1 parent 47f5338 commit fd1342e

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.github/workflows/sycl-nightly.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,14 @@ jobs:
284284
needs: [ubuntu2204_build]
285285
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
286286
strategy:
287+
fail-fast: false
287288
matrix:
289+
runner: ['["PVC_PERF"]', '["BMG_PERF"]']
290+
backend: ['level_zero:gpu']
288291
include:
289292
- ref: ${{ github.sha }}
290-
save_name: Baseline
291-
runner: '["PVC_PERF"]'
292-
backend: 'level_zero:gpu'
293-
preset: Minimal
293+
save_name: 'Baseline'
294+
preset: 'Minimal'
294295
uses: ./.github/workflows/sycl-linux-run-tests.yml
295296
secrets: inherit
296297
with:

.github/workflows/sycl-ur-perf-benchmarking.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ on:
7878
type: choice
7979
options:
8080
- '["PVC_PERF"]'
81+
- '["BMG_PERF"]'
8182
backend:
8283
description: Backend to use
8384
type: choice

devops/actions/run-tests/benchmark/action.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ runs:
3737
run: |
3838
case "$RUNNER_TAG" in
3939
'["PVC_PERF"]' ) ;;
40+
'["BMG_PERF"]' ) ;;
4041
*)
4142
echo "#"
4243
echo "# WARNING: Only specific tuned runners are fully supported."
@@ -54,6 +55,7 @@ runs:
5455
# input.target_devices is not directly used, as this allows code injection
5556
case "$TARGET_DEVICE" in
5657
level_zero:*) ;;
58+
level_zero_v2:*) ;;
5759
*)
5860
echo "#"
5961
echo "# WARNING: Only level_zero backend is fully supported."
@@ -135,8 +137,17 @@ runs:
135137
opencl:*) SAVE_SUFFIX="OCL" ;;
136138
*) SAVE_SUFFIX="${ONEAPI_DEVICE_SELECTOR%%:*}";;
137139
esac
138-
# TODO accomodate for different GPUs and backends
139-
SAVE_NAME="${SAVE_PREFIX}_PVC_${SAVE_SUFFIX}"
140+
case "$RUNNER_TAG" in
141+
'["PVC_PERF"]') MACHINE_TYPE="PVC" ;;
142+
'["BMG_PERF"]') MACHINE_TYPE="BMG" ;;
143+
# Best effort at matching
144+
*)
145+
MACHINE_TYPE="${RUNNER_TAG#[\"}"
146+
MACHINE_TYPE="${MACHINE_TYPE%_PERF=\"]}"
147+
;;
148+
esac
149+
SAVE_NAME="${SAVE_PREFIX}_${MACHINE_TYPE}_${SAVE_SUFFIX}"
150+
echo "SAVE_NAME=$SAVE_NAME" >> $GITHUB_ENV
140151
SAVE_TIMESTAMP="$(date -u +'%Y%m%d_%H%M%S')" # Timestamps are in UTC time
141152
142153
sycl-ls
@@ -221,5 +232,5 @@ runs:
221232
if: always()
222233
uses: actions/upload-artifact@v4
223234
with:
224-
name: Benchmark run ${{ github.run_id }} (${{ runner.name }})
235+
name: Benchmark run ${{ github.run_id }} (${{ env.SAVE_NAME }})
225236
path: ./cached_changes

0 commit comments

Comments
 (0)