Skip to content

Commit 4bab11c

Browse files
Re-enable Host tasks for benchmarks
1 parent e1962d2 commit 4bab11c

File tree

3 files changed

+1762859
-2
lines changed

3 files changed

+1762859
-2
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: SYCL Nightly Benchmarking
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
# 3 hours ahead of SYCL nightly
8+
9+
permissions: read-all
10+
11+
jobs:
12+
ubuntu2204_build:
13+
if: github.repository == 'intel/llvm'
14+
uses: ./.github/workflows/sycl-linux-build.yml
15+
secrets: inherit
16+
with:
17+
build_cache_root: "/__w/"
18+
build_configure_extra_args: '--no-assertions'
19+
build_image: ghcr.io/intel/llvm/ubuntu2404_build:latest
20+
21+
toolchain_artifact: sycl_linux_default
22+
toolchain_artifact_filename: sycl_linux.tar.gz
23+
24+
run-sycl-benchmarks:
25+
needs: [ubuntu2204_build]
26+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
runner: ['["PVC_PERF"]', '["BMG_PERF"]']
31+
backend: ['level_zero:gpu', 'level_zero_v2:gpu']
32+
include:
33+
- ref: ${{ github.sha }}
34+
save_name: 'Baseline'
35+
preset: 'Full'
36+
uses: ./.github/workflows/sycl-linux-run-tests.yml
37+
secrets: inherit
38+
with:
39+
name: Run compute-benchmarks (${{ matrix.runner }}, ${{ matrix.backend }})
40+
runner: ${{ matrix.runner }}
41+
image: ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest
42+
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
43+
target_devices: ${{ matrix.backend }}
44+
tests_selector: benchmarks
45+
benchmark_upload_results: true
46+
benchmark_save_name: ${{ matrix.save_name }}
47+
benchmark_preset: ${{ matrix.preset }}
48+
repo_ref: ${{ matrix.ref }}
49+
toolchain_artifact: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
50+
toolchain_artifact_filename: ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
51+
toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
52+

devops/scripts/benchmarks/benches/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def benchmarks(self) -> list[Benchmark]:
222222
measure_completion_time,
223223
use_events,
224224
emulate_graphs,
225-
useHostTasks=0,
225+
useHostTasks=1 if runtime == RUNTIMES.SYCL else 0,
226226
)
227227
)
228228
if runtime == RUNTIMES.SYCL:
@@ -236,7 +236,7 @@ def benchmarks(self) -> list[Benchmark]:
236236
measure_completion_time,
237237
use_events,
238238
emulate_graphs,
239-
useHostTasks=0,
239+
useHostTasks=1,
240240
profiler_type=PROFILERS.CPU_COUNTER,
241241
)
242242
)

0 commit comments

Comments
 (0)