Skip to content

Commit 0ae1a04

Browse files
committed
[CI] New workflow for SYCL-CTS with SPIR-V backend
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 6965142 commit 0ae1a04

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 * * 7'
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: '--hip --cuda'
22+
build_image: ghcr.io/intel/llvm/ubuntu2204_build:latest
23+
merge_ref: ''
24+
25+
# We upload the build for people to download/use, override its name and
26+
# prefer widespread gzip compression.
27+
artifact_archive_name: sycl_linux.tar.gz
28+
29+
build-sycl-cts:
30+
needs: ubuntu2204_build
31+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
32+
uses: ./.github/workflows/sycl-linux-run-tests.yml
33+
with:
34+
name: Build SYCL-CTS
35+
runner: '["Linux", "build"]'
36+
cts_testing_mode: 'build-only'
37+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
38+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
39+
tests_selector: cts
40+
ref: ${{ github.sha }}
41+
sycl_toolchain_artifact: sycl_linux_default
42+
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
43+
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
44+
extra_cmake_args: -DDPCPP_FLAGS=-fsycl-use-spirv-backend-for-spirv-gen
45+
46+
run-sycl-cts:
47+
needs: [ubuntu2204_build, build-sycl-cts]
48+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
include:
53+
- name: SYCL-CTS on OCL CPU w/ LLVM SPIR-V Backend
54+
runner: '["Linux", "gen12"]'
55+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
56+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
57+
target_devices: opencl:cpu
58+
59+
- name: SYCL-CTS on L0 PVC w/ LLVM SPIR-V Backend
60+
runner: '["Linux", "pvc"]'
61+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
62+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
63+
target_devices: level_zero:gpu
64+
uses: ./.github/workflows/sycl-linux-run-tests.yml
65+
with:
66+
name: ${{ matrix.name }}
67+
runner: ${{ matrix.runner }}
68+
cts_testing_mode: 'run-only'
69+
image: ${{ matrix.image }}
70+
image_options: ${{ matrix.image_options }}
71+
target_devices: ${{ matrix.target_devices }}
72+
tests_selector: cts
73+
ref: ${{ github.sha }}
74+
sycl_toolchain_artifact: sycl_linux_default
75+
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
76+
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
77+
sycl_cts_artifact: sycl_cts_bin

0 commit comments

Comments
 (0)