Skip to content

Commit bd242cd

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

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/nightly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ jobs:
330330
with:
331331
pr_no: '0'
332332
bench_script_params: '--save Baseline_PVC'
333+
run_sycl: true
333334

334335
SYCL:
335336
uses: ./.github/workflows/reusable_sycl.yml

.github/workflows/reusable_benchmarks.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
required: false
2323
type: string
2424
default: 'L0_PERF'
25+
run_sycl:
26+
required: false
27+
type: boolean
28+
default: false
2529

2630
permissions:
2731
contents: read
@@ -150,7 +154,27 @@ jobs:
150154
ZE_AFFINITY_MASK=1
151155
echo "ZE_AFFINITY_MASK=$ZE_AFFINITY_MASK" >> $GITHUB_ENV
152156
153-
- name: Run UMF benchmarks
157+
- name: Download latest sycl
158+
if: ${{ inputs.run_sycl }}
159+
run: |
160+
llvm_tag=$(curl -s https://api.github.com/repos/intel/llvm/releases | awk -F'"' '/"tag_name":/ {print $4; exit}')
161+
download_url="https://github.com/intel/llvm/releases/download/${llvm_tag}/sycl_linux.tar.gz"
162+
echo "llvm tag: $llvm_tag"
163+
wget --no-verbose $download_url -O sycl_linux.tar.gz
164+
165+
- name: Unpack sycl
166+
if: ${{ inputs.run_sycl }}
167+
run: |
168+
mkdir -p sycl
169+
tar -xzf sycl_linux.tar.gz -C sycl --strip-components=1
170+
rm sycl_linux.tar.gz
171+
echo "SYCL_DIR=${{ github.workspace }}/sycl" >> $GITHUB_ENV
172+
173+
- name: Remove UMF libraries from sycl
174+
if: ${{ inputs.run_sycl }}
175+
run: rm -f ${{ env.SYCL_DIR }}/lib/libumf*
176+
177+
- name: Run benchmarks
154178
id: benchmarks
155179
run: >
156180
source .venv/bin/activate &&
@@ -162,6 +186,8 @@ jobs:
162186
--results-dir ${{ github.workspace }}/results-repo
163187
--output-markdown
164188
${{ env.bench_params }}
189+
${{ inputs.run_sycl && '--sycl ${{ env.SYCL_DIR }}' || '' }}
190+
${{ inputs.run_sycl && '--adapter level_zero' || '' }}
165191
166192
# In case it failed to add a comment, we can still print the results.
167193
- name: Print benchmark results

0 commit comments

Comments
 (0)