|
6 | 6 | - cron: '0 3 * * *'
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - test_matrix: |
10 |
| - if: github.repository == 'intel/llvm' |
11 |
| - name: Generate Test Matrix |
12 |
| - uses: ./.github/workflows/sycl_gen_test_matrix.yml |
13 |
| - with: |
14 |
| - lts_config: "hip_amdgpu;ocl_gen12;ocl_x64;l0_gen12;esimd_emu;cuda_aws;win_l0_gen12" |
15 |
| - |
16 |
| - ubuntu2204_build_test: |
| 9 | + ubuntu2204_build: |
17 | 10 | if: github.repository == 'intel/llvm'
|
18 |
| - uses: ./.github/workflows/sycl_linux_build_and_test.yml |
19 |
| - needs: test_matrix |
| 11 | + uses: ./.github/workflows/sycl_linux_build.yml |
20 | 12 | secrets: inherit
|
21 | 13 | with:
|
22 | 14 | build_cache_root: "/__w/"
|
23 | 15 | build_artifact_suffix: default
|
24 | 16 | build_configure_extra_args: '--hip --cuda --enable-esimd-emulator'
|
25 | 17 | merge_ref: ''
|
26 | 18 | retention-days: 90
|
27 |
| - lts_matrix: ${{ needs.test_matrix.outputs.lts_lx_matrix }} |
28 |
| - lts_aws_matrix: ${{ needs.test_matrix.outputs.lts_aws_matrix }} |
29 | 19 |
|
30 | 20 | # We upload the build for people to download/use, override its name and
|
31 | 21 | # prefer widespread gzip compression.
|
32 | 22 | artifact_archive_name: sycl_linux.tar.gz
|
33 | 23 |
|
| 24 | + ubuntu2204_test: |
| 25 | + needs: [ubuntu2204_build] |
| 26 | + if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }} |
| 27 | + strategy: |
| 28 | + fail-fast: false |
| 29 | + matrix: |
| 30 | + include: |
| 31 | + - name: AMD/HIP |
| 32 | + runner: '["Linux", "amdgpu"]' |
| 33 | + image: ghcr.io/intel/llvm/ubuntu2204_build:latest |
| 34 | + image_options: -u 1001 --device=/dev/dri --device=/dev/kfd |
| 35 | + target_devices: ext_oneapi_hip:gpu |
| 36 | + |
| 37 | + - name: Intel L0 GPU |
| 38 | + runner: '["Linux", "gen12"]' |
| 39 | + image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest |
| 40 | + image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN |
| 41 | + target_devices: ext_oneapi_level_zero:gpu |
| 42 | + reset_gpu: true |
| 43 | + |
| 44 | + - name: Intel OCL GPU |
| 45 | + runner: '["Linux", "gen12"]' |
| 46 | + image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest |
| 47 | + image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN |
| 48 | + target_devices: opencl:gpu |
| 49 | + reset_gpu: true |
| 50 | + |
| 51 | + - name: OCL CPU |
| 52 | + runner: '["Linux", "x86-cpu"]' |
| 53 | + image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest |
| 54 | + image_options: -u 1001 |
| 55 | + target_devices: opencl:cpu |
| 56 | + |
| 57 | + - name: ESIMD Emu |
| 58 | + runner: '["Linux", "x86-cpu"]' |
| 59 | + image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest |
| 60 | + image_options: -u 1001 |
| 61 | + target_devices: ext_intel_esimd_emulator:gpu |
| 62 | + |
| 63 | + - name: Self-hosted CUDA |
| 64 | + runner: '["Linux", "cuda"]' |
| 65 | + image: ghcr.io/intel/llvm/ubuntu2204_build:latest |
| 66 | + image_options: -u 1001 --gpus all --cap-add SYS_ADMIN |
| 67 | + target_devices: ext_oneapi_cuda:gpu |
| 68 | + uses: ./.github/workflows/sycl_linux_run_tests.yml |
| 69 | + with: |
| 70 | + name: ${{ matrix.name }} |
| 71 | + runner: ${{ matrix.runner }} |
| 72 | + image: ${{ matrix.image }} |
| 73 | + image_options: ${{ matrix.image_options }} |
| 74 | + target_devices: ${{ matrix.target_devices }} |
| 75 | + reset_gpu: ${{ matrix.reset_gpu }} |
| 76 | + ref: ${{ github.sha }} |
| 77 | + merge_ref: '' |
| 78 | + sycl_toolchain_artifact: sycl_linux_default |
| 79 | + sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }} |
| 80 | + sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }} |
| 81 | + |
| 82 | + |
| 83 | + test_matrix: |
| 84 | + if: github.repository == 'intel/llvm' |
| 85 | + name: Generate Test Matrix |
| 86 | + uses: ./.github/workflows/sycl_gen_test_matrix.yml |
| 87 | + with: |
| 88 | + lts_config: "win_l0_gen12" |
| 89 | + |
34 | 90 | windows_default:
|
35 | 91 | name: Windows
|
36 | 92 | if: github.repository == 'intel/llvm'
|
|
47 | 103 | nightly_build_upload:
|
48 | 104 | name: Nightly Build Upload
|
49 | 105 | if: ${{ github.ref_name == 'sycl' }}
|
50 |
| - needs: [ubuntu2204_build_test, windows_default] |
| 106 | + needs: [ubuntu2204_build, windows_default] |
51 | 107 | runs-on: ubuntu-latest
|
52 | 108 | steps:
|
53 | 109 | - uses: actions/download-artifact@v3
|
|
80 | 136 | ubuntu2204_docker_build_push:
|
81 | 137 | if: github.repository == 'intel/llvm'
|
82 | 138 | runs-on: [Linux, build]
|
83 |
| - needs: ubuntu2204_build_test |
| 139 | + needs: ubuntu2204_build |
84 | 140 | steps:
|
85 | 141 | - uses: actions/checkout@v3
|
86 | 142 | - uses: actions/download-artifact@v3
|
|
0 commit comments