Skip to content

Commit 37df022

Browse files
committed
Add github workflow to only build tests
1 parent 7f7d56b commit 37df022

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Experimental SYCL test split e2e
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions: read-all
7+
8+
jobs:
9+
detect_changes:
10+
uses: ./.github/workflows/sycl-detect-changes.yml
11+
12+
build:
13+
needs: [detect_changes]
14+
if: always() && success()
15+
uses: ./.github/workflows/sycl-linux-build.yml
16+
with:
17+
build_ref: ${{ github.sha }}
18+
merge_ref: ''
19+
build_cache_root: "/__w/"
20+
build_artifact_suffix: "default"
21+
build_cache_suffix: "default"
22+
changes: ${{ needs.detect_changes.outputs.filters }}
23+
build-tests:
24+
needs: [build, detect_changes]
25+
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- name: Intel
31+
runner: '["Linux", "gen12"]'
32+
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
33+
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
34+
target_devices: level_zero:gpu;opencl:gpu;opencl:cpu
35+
reset_intel_gpu: true
36+
extra_lit_opts: --param gpu-intel-gen12=True --param split-mode=build
37+
38+
uses: ./.github/workflows/sycl-linux-run-tests.yml
39+
with:
40+
name: ${{ matrix.name }}
41+
runner: ${{ matrix. runner }}
42+
image: ${{ matrix.image }}
43+
image_options: ${{ matrix.image_options }}
44+
target_devices: ${{ matrix.target_devices }}
45+
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
46+
extra_lit_opts: ${{ matrix.extra_lit_opts }}
47+
env: ${{ matrix.env || '{}' }}
48+
49+
# Do not install drivers on AMD and CUDA runners.
50+
install_igc_driver: >-
51+
${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
52+
!contains(matrix.target_devices, 'ext_oneapi_hip') &&
53+
contains(needs.detect_changes.outputs.filters, 'drivers') }}
54+
install_dev_igc_driver: >-
55+
${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
56+
!contains(matrix.target_devices, 'ext_oneapi_hip') &&
57+
matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') ||
58+
'false' }}
59+
# Run only if the PR does not have the 'ci-no-devigc' label.
60+
skip_run: ${{matrix.use_igc_dev && contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') || 'false'}}
61+
62+
ref: ${{ github.sha }}
63+
merge_ref: ''
64+
65+
sycl_toolchain_artifact: sycl_linux_default
66+
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
67+
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}

0 commit comments

Comments
 (0)