File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2222 required : false
2323 type : string
2424 default : ' L0_PERF'
25+ run_sycl :
26+ required : false
27+ type : boolean
28+ default : false
2529
2630permissions :
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
You can’t perform that action at this time.
0 commit comments