File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed
devops/actions/run-tests/benchmark Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -312,4 +312,5 @@ jobs:
312312 with :
313313 target_devices : ${{ inputs.target_devices }}
314314 env :
315+ RUNNER_TAG : ${{ inputs.runner }}
315316 GITHUB_TOKEN : ${{ secrets.LLVM_SYCL_BENCHMARK_TOKEN }}
Original file line number Diff line number Diff line change @@ -240,6 +240,11 @@ jobs:
240240 image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
241241 target_devices : level_zero:gpu
242242 reset_intel_gpu : true
243+ - name : Run compute-benchmarks on L0 PVC
244+ runner : ' ["Linux", "pvc"]'
245+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
246+ target_devices : level_zero:gpu
247+ reset_intel_gpu : true
243248 uses : ./.github/workflows/sycl-linux-run-tests.yml
244249 with :
245250 name : ${{ matrix.name }}
Original file line number Diff line number Diff line change @@ -9,14 +9,43 @@ name: 'Run compute-benchmarks'
99#
1010# https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#accessing-your-secrets
1111#
12+ # This action also expects a RUNNER_TAG environment variable to be set to the
13+ # runner tag used to run this workflow: Currently, only gen12 and pvc on Linux
14+ # are fully supported. Although this workflow won't stop you from running other
15+ # devices, note that only gen12 and pvc has been tested to work.
16+ #
1217
1318inputs :
1419 target_devices :
15- required : true
20+ type : string
21+ required : True
1622
1723runs :
1824 using : " composite"
1925 steps :
26+ - name : Check specified runner type / target backend
27+ shell : bash
28+ env :
29+ TARGET_DEVICE : ${{ inputs.target_devices }}
30+ run : |
31+ case "$RUNNER_TAG" in:
32+ '["Linux", "gen12"]' | '["Linux", "pvc"]') ;;
33+ *)
34+ echo "#"
35+ echo "# WARNING: Only gen12/pvc on Linux is fully supported."
36+ echo "# This workflow is not guaranteed to work with other runners."
37+ echo "#" ;;
38+ esac
39+
40+ # input.target_devices is not directly used, as this allows code injection
41+ case "$TARGET_DEVICE" in:
42+ level_zero:*) ;;
43+ *)
44+ echo "#"
45+ echo "# WARNING: Only level_zero backend is fully supported."
46+ echo "# This workflow is not guaranteed to work with other backends."
47+ echo "#" ;;
48+ esac
2049 - name : Run compute-benchmarks
2150 shell : bash
2251 run : |
You can’t perform that action at this time.
0 commit comments