Skip to content

Commit 46ed849

Browse files
committed
Add sycl benchmark to sycl compatibility workflow
1 parent 0c49a4e commit 46ed849

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/reusable_sycl.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ jobs:
1919
matrix:
2020
llvm_tag: ["latest", "nightly-2025-02-08"] # "latest" or llvm with UMF v0.11.0-dev2
2121

22+
env:
23+
TESTS_BUILD_DIR: ${{ github.workspace }}/sycl_repo/sycl/test-e2e/build
24+
BENCH_WORKDIR: ${{ github.workspace }}/llvm_bench_workdir
25+
BENCH_SCRIPTS_DIR: ${{ github.workspace }}/sycl_repo/devops/scripts/benchmarks
26+
2227
steps:
2328
# Install sycl
2429
- name: Clean up
2530
if: always()
26-
run: rm -rf llvm sycl_linux.tar.gz
31+
run: rm -rf llvm ${{env.BENCH_WORKDIR}} sycl_linux.tar.gz
2732

2833
- name: Download llvm daily release
2934
run: |
@@ -93,10 +98,7 @@ jobs:
9398
ref: sycl
9499

95100
- name: Create sycl tests build directory
96-
run: |
97-
TESTS_BUILD_DIR=${{ github.workspace }}/sycl_repo/sycl/test-e2e/build
98-
mkdir $TESTS_BUILD_DIR
99-
echo "TESTS_BUILD_DIR=$TESTS_BUILD_DIR" >> $GITHUB_ENV
101+
run: mkdir ${{env.TESTS_BUILD_DIR}}
100102

101103
- name: Build sycl e2e tests
102104
working-directory: sycl_repo
@@ -120,3 +122,24 @@ jobs:
120122
echo "---Run build_log test" && ./build_log
121123
echo "---Run parallel_for_range_roundup test" && ./parallel_for_range_roundup
122124
echo "---Run fill_any_size test" && ./fill_any_size
125+
126+
# Run sycl benchmarks
127+
- name: Install pip dependencies
128+
run: |
129+
python3 -m venv .venv
130+
source .venv/bin/activate
131+
pip install -r ${{env.BENCH_SCRIPTS_DIR}}/requirements.txt
132+
133+
- name: Run sycl benchmarks
134+
run: >
135+
source .venv/bin/activate &&
136+
taskset -c "4-27"
137+
python3 ${{env.BENCH_SCRIPTS_DIR}}/main.py
138+
${{env.BENCH_WORKDIR}}
139+
--sycl ${{github.workspace}}/llvm
140+
--ur ${{github.workspace}}/llvm
141+
--umf ${{github.workspace}}/llvm
142+
--adapter level_zero
143+
--exit-on-failure
144+
--compute-runtime
145+
--build-igc

0 commit comments

Comments
 (0)