File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ jobs:
330
330
with :
331
331
pr_no : ' 0'
332
332
bench_script_params : ' --save Baseline_PVC'
333
+ run_sycl : true
333
334
334
335
SYCL :
335
336
uses : ./.github/workflows/reusable_sycl.yml
Original file line number Diff line number Diff line change 22
22
required : false
23
23
type : string
24
24
default : ' L0_PERF'
25
+ run_sycl :
26
+ required : false
27
+ type : boolean
28
+ default : false
25
29
26
30
permissions :
27
31
contents : read
@@ -150,7 +154,27 @@ jobs:
150
154
ZE_AFFINITY_MASK=1
151
155
echo "ZE_AFFINITY_MASK=$ZE_AFFINITY_MASK" >> $GITHUB_ENV
152
156
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
154
178
id : benchmarks
155
179
run : >
156
180
source .venv/bin/activate &&
@@ -162,6 +186,8 @@ jobs:
162
186
--results-dir ${{ github.workspace }}/results-repo
163
187
--output-markdown
164
188
${{ env.bench_params }}
189
+ ${{ inputs.run_sycl && '--sycl ${{ env.SYCL_DIR }}' || '' }}
190
+ ${{ inputs.run_sycl && '--adapter level_zero' || '' }}
165
191
166
192
# In case it failed to add a comment, we can still print the results.
167
193
- name : Print benchmark results
You can’t perform that action at this time.
0 commit comments