Skip to content

Commit cec8110

Browse files
committed
Add sycl benchmark to Nightly benchmark workflow
1 parent e3d2929 commit cec8110

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/reusable_benchmarks.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,38 @@ jobs:
150150
ZE_AFFINITY_MASK=1
151151
echo "ZE_AFFINITY_MASK=$ZE_AFFINITY_MASK" >> $GITHUB_ENV
152152
153-
- name: Run UMF benchmarks
153+
- name: Download latest sycl
154+
run: |
155+
llvm_tag=$(curl -s https://api.github.com/repos/intel/llvm/releases | awk -F'"' '/"tag_name":/ {print $4; exit}')
156+
download_url="https://github.com/intel/llvm/releases/download/${llvm_tag}/sycl_linux.tar.gz"
157+
echo "llvm tag: $llvm_tag"
158+
wget --no-verbose $download_url -O sycl_linux.tar.gz
159+
160+
- name: Unpack sycl
161+
run: |
162+
mkdir -p sycl
163+
tar -xzf sycl_linux.tar.gz -C sycl --strip-components=1
164+
rm sycl_linux.tar.gz
165+
echo "SYCL_DIR=${{ github.workspace }}/sycl" >> $GITHUB_ENV
166+
167+
- name: Remove UMF libraries from sycl
168+
run: rm -f ${{ env.SYCL_DIR }}/lib/libumf*
169+
170+
- name: Run benchmarks
154171
id: benchmarks
155172
run: >
156173
source .venv/bin/activate &&
157174
taskset -c ${{ env.CORES }} ./sc/devops/scripts/benchmarks/main.py
158175
~/bench_workdir_umf
159-
--umf ${{env.BUILD_DIR}}
176+
--umf ${{ env.BUILD_DIR }}
160177
--timeout 3000
161178
--output-html remote
162179
--results-dir ${{ github.workspace }}/results-repo
163180
--output-markdown
181+
--sycl ${{ env.SYCL_DIR }}
182+
--adapter level_zero
183+
--exit-on-failure
184+
--filter SYCL-Bench
164185
${{ env.bench_params }}
165186
166187
# In case it failed to add a comment, we can still print the results.

0 commit comments

Comments
 (0)