Skip to content

Commit 2c246da

Browse files
committed
Add sycl benchmark to sycl compatibility workflow
1 parent 0c49a4e commit 2c246da

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/reusable_sycl.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# Install sycl
2424
- name: Clean up
2525
if: always()
26-
run: rm -rf llvm sycl_linux.tar.gz
26+
run: rm -rf llvm llvm_bench_workdir sycl_linux.tar.gz
2727

2828
- name: Download llvm daily release
2929
run: |
@@ -120,3 +120,25 @@ jobs:
120120
echo "---Run build_log test" && ./build_log
121121
echo "---Run parallel_for_range_roundup test" && ./parallel_for_range_roundup
122122
echo "---Run fill_any_size test" && ./fill_any_size
123+
124+
# Run sycl benchmarks
125+
- name: Install pip dependencies
126+
run: |
127+
echo "BENCH_SCRIPT_DIR=${{ github.workspace }}/sycl_repo/devops/scripts/benchmarks" >> $GITHUB_ENV
128+
python3 -m venv .venv
129+
source .venv/bin/activate
130+
pip install -r ${env.BENCH_SCRIPTS_DIR}/requirements.txt
131+
132+
- name: Run sycl benchmarks
133+
run: >
134+
source .venv/bin/activate &&
135+
taskset -c "4-27"
136+
python3 ${env.BENCH_SCRIPTS_DIR}/main.py
137+
${{github.workspace}}/llvm_bench_workdir
138+
--sycl ${{github.workspace}}/llvm
139+
--ur ${{github.workspace}}/llvm
140+
--umf ${{github.workspace}}/llvm
141+
--adapter level_zero
142+
--exit-on-failure
143+
--compute-runtime
144+
--build-igc

0 commit comments

Comments
 (0)