Skip to content

Commit 5242ce1

Browse files
committed
Add sycl benchmark to sycl compatibility workflow
1 parent 0c49a4e commit 5242ce1

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
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

Lines changed: 26 additions & 1 deletion
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,26 @@ 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+
wget --no-verbose $download_url -O sycl_linux.tar.gz
163+
164+
- name: Unpack sycl
165+
if: ${{ inputs.run_sycl }}
166+
run: |
167+
mkdir -p sycl
168+
tar -xzf sycl_linux.tar.gz -C sycl --strip-components=1
169+
rm sycl_linux.tar.gz
170+
echo "SYCL_DIR=$(pwd)/sycl" >> $GITHUB_ENV
171+
172+
- name: Remove UMF libraries from sycl
173+
if: ${{ inputs.run_sycl }}
174+
run: rm -f ${{ env.SYCL_DIR }}/lib/libumf*
175+
176+
- name: Run benchmarks
154177
id: benchmarks
155178
run: >
156179
source .venv/bin/activate &&
@@ -162,6 +185,8 @@ jobs:
162185
--results-dir ${{ github.workspace }}/results-repo
163186
--output-markdown
164187
${{ env.bench_params }}
188+
${{ inputs.run_sycl }} && "--sycl ${{ env.SYCL_DIR }}" || ""
189+
${{ inputs.run_sycl }} && "--adapter level_zero" || ""
165190
166191
# In case it failed to add a comment, we can still print the results.
167192
- name: Print benchmark results

0 commit comments

Comments
 (0)