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,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,9 @@ 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' || '' }}
191+ ${{ inputs.run_sycl && '--exit-on-failure' || '' }}
165192
166193 # In case it failed to add a comment, we can still print the results.
167194 - name : Print benchmark results
0 commit comments