Skip to content

Commit 4d3d4e6

Browse files
authored
[CI] New workflow for SYCL-CTS with SPIR-V backend (#16731)
This patch adds new workflow to build SYCL-CTS with SPIR-V backend and run it on gen12 OCL CPU and PVC L0 GPU. It will be launched only on Sundays.
1 parent 2307220 commit 4d3d4e6

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/sycl-weekly.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This workflow builds SYCL-CTS with -fsycl-use-spirv-backend-for-spirv-gen and
2+
# runs it with opencl:cpu & gen12 and level_zero:gpu & PVC on Sundays.
3+
4+
name: SYCL-CTS with SPIR-V backend
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '0 0 * * 0'
10+
11+
permissions: read-all
12+
13+
jobs:
14+
ubuntu2204_build:
15+
if: github.repository == 'intel/llvm'
16+
uses: ./.github/workflows/sycl-linux-build.yml
17+
secrets: inherit
18+
with:
19+
build_cache_root: "/__w/"
20+
build_artifact_suffix: default
21+
build_configure_extra_args: ''
22+
merge_ref: ''
23+
24+
build-sycl-cts:
25+
needs: ubuntu2204_build
26+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
27+
uses: ./.github/workflows/sycl-linux-run-tests.yml
28+
with:
29+
name: Build SYCL-CTS
30+
runner: '["Linux", "build"]'
31+
cts_testing_mode: 'build-only'
32+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
33+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
34+
tests_selector: cts
35+
ref: ${{ github.sha }}
36+
sycl_toolchain_artifact: sycl_linux_default
37+
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
38+
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
39+
extra_cmake_args: -DDPCPP_FLAGS=-fsycl-use-spirv-backend-for-spirv-gen
40+
41+
run-sycl-cts:
42+
needs: [ubuntu2204_build, build-sycl-cts]
43+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
include:
48+
- name: SYCL-CTS on OCL CPU PVC w/ LLVM SPIR-V Backend
49+
runner: '["Linux", "pvc"]'
50+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
51+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
52+
target_devices: opencl:cpu
53+
54+
- name: SYCL-CTS on L0 GPU PVC w/ LLVM SPIR-V Backend
55+
runner: '["Linux", "pvc"]'
56+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
57+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
58+
target_devices: level_zero:gpu
59+
uses: ./.github/workflows/sycl-linux-run-tests.yml
60+
with:
61+
name: ${{ matrix.name }}
62+
runner: ${{ matrix.runner }}
63+
cts_testing_mode: 'run-only'
64+
image: ${{ matrix.image }}
65+
image_options: ${{ matrix.image_options }}
66+
target_devices: ${{ matrix.target_devices }}
67+
tests_selector: cts
68+
ref: ${{ github.sha }}
69+
sycl_toolchain_artifact: sycl_linux_default
70+
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
71+
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
72+
sycl_cts_artifact: sycl_cts_bin

0 commit comments

Comments
 (0)