Skip to content

Commit 84ab397

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

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.github/workflows/reusable_benchmarks.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,47 @@ 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": "nightly/ {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 sycl-ls
171+
env:
172+
LD_LIBRARY_PATH: ${{ env.SYCL_DIR }}/lib
173+
SYCL_UR_TRACE: 1
174+
SYCL_UR_USE_LEVEL_ZERO_V2: 1
175+
run: ${{ env.SYCL_DIR }}/bin/sycl-ls
176+
177+
- name: Run benchmarks
154178
id: benchmarks
179+
env:
180+
LD_LIBRARY_PATH: ${{ env.SYCL_DIR }}/lib
155181
run: >
156182
source .venv/bin/activate &&
157183
taskset -c ${{ env.CORES }} ./sc/devops/scripts/benchmarks/main.py
158184
~/bench_workdir_umf
159-
--umf ${{env.BUILD_DIR}}
185+
--umf ${{ env.BUILD_DIR }}
160186
--timeout 3000
161187
--output-html remote
162188
--results-dir ${{ github.workspace }}/results-repo
163189
--output-markdown
190+
--sycl ${{ env.SYCL_DIR }}
191+
--adapter level_zero_v2
192+
--exit-on-failure
193+
--filter SYCL-Bench
164194
${{ env.bench_params }}
165195
166196
# In case it failed to add a comment, we can still print the results.

0 commit comments

Comments
 (0)