@@ -47,156 +47,6 @@ jobs:
4747 # prefer widespread gzip compression.
4848 toolchain_artifact_filename : sycl_linux.tar.gz
4949
50- # Build used for performance testing only: not intended for testing
51- linux_shared_build :
52- if : github.repository == 'intel/llvm'
53- uses : ./.github/workflows/sycl-linux-build.yml
54- secrets : inherit
55- with :
56- build_cache_root : " /__w/"
57- build_cache_suffix : sprod_shared
58- build_configure_extra_args : ' --shared-libs --hip --cuda --native_cpu --no-assertions'
59- build_target : all
60-
61- toolchain_artifact : sycl_linux_sprod_shared
62- toolchain_artifact_filename : sycl_linux_shared.tar.zst
63-
64- ubuntu2404_oneapi_build :
65- if : github.repository == 'intel/llvm'
66- uses : ./.github/workflows/sycl-linux-build.yml
67- secrets : inherit
68- with :
69- build_cache_root : " /__w/"
70- build_cache_suffix : oneapi
71- build_configure_extra_args : -DCMAKE_C_FLAGS="-no-intel-lib -ffp-model=precise" -DCMAKE_CXX_FLAGS="-no-intel-lib -ffp-model=precise"
72- cc : icx
73- cxx : icpx
74-
75- toolchain_artifact : sycl_linux_oneapi
76- toolchain_artifact_filename : sycl_linux_oneapi.tar.zst
77-
78- ubuntu2404_libcxx_build :
79- if : github.repository == 'intel/llvm'
80- uses : ./.github/workflows/sycl-linux-build.yml
81- secrets : inherit
82- with :
83- build_cache_root : " /__w/"
84- build_cache_suffix : libcxx
85- build_configure_extra_args : --use-libcxx -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=OFF
86- cc : clang-18
87- cxx : clang++-18
88-
89- toolchain_artifact : sycl_linux_libcxx
90- toolchain_artifact_filename : sycl_linux_libcxx.tar.zst
91-
92- ubuntu2204_test :
93- needs : [ubuntu2204_build]
94- permissions :
95- contents : write
96- packages : read
97- if : ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
98- strategy :
99- fail-fast : false
100- matrix :
101- include :
102- - name : AMD/HIP
103- runner : ' ["Linux", "amdgpu"]'
104- image_options : -u 1001 --device=/dev/dri --device=/dev/kfd
105- target_devices : hip:gpu
106-
107- - name : Preview mode on AMD/HIP
108- runner : ' ["Linux", "amdgpu"]'
109- image_options : -u 1001 --device=/dev/dri --device=/dev/kfd
110- target_devices : hip:gpu
111- extra_lit_opts : --param test-preview-mode=True
112-
113- - name : NVIDIA/CUDA
114- runner : ' ["Linux", "cuda"]'
115- image_options : -u 1001 --gpus all --cap-add SYS_ADMIN
116- target_devices : cuda:gpu
117-
118- - name : Preview mode on NVIDIA/CUDA
119- runner : ' ["Linux", "cuda"]'
120- image_options : -u 1001 --gpus all --cap-add SYS_ADMIN
121- target_devices : cuda:gpu
122- extra_lit_opts : --param test-preview-mode=True
123-
124- - name : Intel L0 Gen12 GPU
125- runner : ' ["Linux", "gen12"]'
126- target_devices : level_zero:gpu
127-
128- - name : Intel L0 Ponte Vecchio GPU
129- runner : ' ["Linux", "pvc"]'
130- target_devices : level_zero:gpu
131-
132- - name : Intel L0 Battlemage GPU
133- runner : ' ["Linux", "bmg"]'
134- target_devices : level_zero:gpu
135-
136- - name : Preview mode on Intel L0 Battlemage GPU
137- runner : ' ["Linux", "bmg"]'
138- target_devices : level_zero:gpu
139- extra_lit_opts : --param test-preview-mode=True
140-
141- - name : Intel L0 Arc A-Series GPU
142- runner : ' ["Linux", "arc"]'
143- target_devices : level_zero:gpu
144-
145- - name : Intel OCL Gen12 GPU
146- runner : ' ["Linux", "gen12"]'
147- target_devices : opencl:gpu
148-
149- - name : OCL CPU (AMD)
150- runner : ' ["Linux", "amdcpu"]'
151- image_options : -u 1001
152- target_devices : opencl:cpu
153-
154- - name : OCL CPU (Intel/GEN12)
155- runner : ' ["Linux", "gen12"]'
156- image_options : -u 1001 --privileged --cap-add SYS_ADMIN
157- target_devices : opencl:cpu
158-
159- - name : OCL CPU (Intel/Arc)
160- runner : ' ["Linux", "arc"]'
161- image_options : -u 1001
162- target_devices : opencl:cpu
163-
164- - name : Preview mode on SPR/PVC
165- runner : ' ["Linux", "pvc"]'
166- target_devices : level_zero:gpu
167- extra_lit_opts : --param test-preview-mode=True
168-
169- uses : ./.github/workflows/sycl-linux-run-tests.yml
170- with :
171- name : ${{ matrix.name }}
172- runner : ${{ matrix.runner }}
173- image_options : ${{ matrix.image_options || '-u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN' }}
174- target_devices : ${{ matrix.target_devices }}
175- tests_selector : e2e
176- extra_lit_opts : " --param 'cxx_flags=-D_GLIBCXX_USE_CXX11_ABI=0' ${{ matrix.extra_lit_opts }}"
177- repo_ref : ${{ github.sha }}
178- toolchain_artifact : ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
179- toolchain_artifact_filename : ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
180- toolchain_decompress_command : ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
181-
182- ubuntu2404_oneapi_test :
183- needs : [ubuntu2404_oneapi_build]
184- permissions :
185- contents : write
186- packages : read
187- if : ${{ !cancelled() && needs.ubuntu2404_oneapi_build.outputs.build_conclusion == 'success' }}
188- uses : ./.github/workflows/sycl-linux-run-tests.yml
189- with :
190- name : Intel PVC L0 oneAPI
191- runner : ' ["Linux", "pvc"]'
192- target_devices : level_zero:gpu
193- extra_lit_opts : -j 50
194- image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
195- repo_ref : ${{ github.sha }}
196- toolchain_artifact : ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_artifact }}
197- toolchain_artifact_filename : ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_artifact_filename }}
198- toolchain_decompress_command : ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_decompress_command }}
199-
20050 e2e-with-new-offload-model :
20151 needs : [ubuntu2204_build]
20252 if : ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
@@ -232,35 +82,6 @@ jobs:
23282 build_configure_extra_args : -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DSYCL_BUILD_INFO="Nightly ${{ needs.get_date.outputs.date }}"
23383 build_target : all
23484
235- e2e-win :
236- needs : build-win
237- # Continue if build was successful.
238- if : |
239- !cancelled()
240- && needs.build-win.outputs.build_conclusion == 'success'
241- strategy :
242- fail-fast : false
243- matrix :
244- include :
245- - name : Intel L0 Gen12 GPU
246- runner : ' ["Windows", "gen12"]'
247- target_devices : level_zero:gpu
248-
249- - name : Intel L0 Arc GPU
250- runner : ' ["Windows", "arc"]'
251- target_devices : level_zero:gpu
252-
253- - name : Intel L0 Battlemage GPU
254- runner : ' ["Windows", "bmg"]'
255- target_devices : level_zero:gpu
256-
257- uses : ./.github/workflows/sycl-windows-run-tests.yml
258- with :
259- name : ${{ matrix.name }}
260- runner : ${{ matrix.runner }}
261- target_devices : ${{ matrix.target_devices }}
262- toolchain_artifact_filename : ${{ needs.build-win.outputs.toolchain_artifact_filename }}
263-
26485 e2e-win-with-new-offload-model :
26586 needs : [build-win]
26687 if : ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
@@ -277,41 +98,6 @@ jobs:
27798 extra_lit_opts : " --param enable_new_offload_model=True"
27899 toolchain_artifact_filename : ${{ needs.build-win.outputs.toolchain_artifact_filename }}
279100
280- cuda-aws-start :
281- needs : [ubuntu2204_build]
282- if : ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
283- uses : ./.github/workflows/sycl-aws.yml
284- secrets : inherit
285- with :
286- mode : start
287-
288- cuda-run-tests :
289- needs : [ubuntu2204_build, cuda-aws-start]
290- permissions :
291- contents : write
292- packages : read
293- if : ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
294- uses : ./.github/workflows/sycl-linux-run-tests.yml
295- with :
296- name : CUDA E2E
297- runner : ' ["aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}"]'
298- image : ghcr.io/intel/llvm/ubuntu2204_build:latest
299- image_options : -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
300- target_devices : cuda:gpu
301- repo_ref : ${{ github.sha }}
302-
303- toolchain_artifact : ${{ needs.ubuntu2204_build.outputs.toolchain_artifact }}
304- toolchain_artifact_filename : ${{ needs.ubuntu2204_build.outputs.toolchain_artifact_filename }}
305- toolchain_decompress_command : ${{ needs.ubuntu2204_build.outputs.toolchain_decompress_command }}
306-
307- cuda-aws-stop :
308- needs : [cuda-aws-start, cuda-run-tests]
309- if : ${{ needs.cuda-aws-start.result != 'skipped' }}
310- uses : ./.github/workflows/sycl-aws.yml
311- secrets : inherit
312- with :
313- mode : stop
314-
315101 build-sycl-cts-linux :
316102 needs : ubuntu2204_build
317103 permissions :
@@ -486,76 +272,3 @@ jobs:
486272 repo_ref : ${{ github.sha }}
487273 toolchain_artifact_filename : ${{ needs.build-win.outputs.toolchain_artifact_filename }}
488274 binaries_artifact : sycl_cts_bin_win_with_new_offload_model
489-
490- # Verification example:
491- # cosign-windows-amd64.exe verify-blob sycl_linux.tar.gz \
492- # --bundle sycl_linux.tar.gz.sigstore.json \
493- # --certificate-oidc-issuer https://token.actions.githubusercontent.com \
494- # --certificate-identity https://github.com/intel/llvm/.github/workflows/sycl-nightly.yml@refs/heads/sycl
495- nightly_build_upload :
496- name : Nightly Build Upload
497- if : ${{ github.ref_name == 'sycl' }}
498- needs : [get_date, ubuntu2204_build, build-win]
499- runs-on : ubuntu-latest
500- permissions :
501- contents : write
502- id-token : write
503- steps :
504- - uses : actions/download-artifact@v6
505- with :
506- name : sycl_linux_default
507- - uses : actions/download-artifact@v6
508- with :
509- name : sycl_windows_default
510- - name : Sign with sigstore/cosign
511- uses : sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c # v3.1.0
512- with :
513- inputs : sycl_linux.tar.gz sycl_windows.tar.gz
514- - name : Compute tag
515- id : tag
516- run : |
517- if [ "${{ github.event_name == 'schedule' }}" == "true" ]; then
518- echo "TAG=${{ needs.get_date.outputs.date }}" >> "$GITHUB_OUTPUT"
519- else
520- # TODO: Use date of the commit?
521- echo "TAG=${{ needs.get_date.outputs.date }}-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
522- fi
523- - name : Upload binaries
524- uses : softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
525- with :
526- files : |
527- sycl_linux.tar.gz
528- sycl_windows.tar.gz
529- sycl_linux.tar.gz.sigstore.json
530- sycl_windows.tar.gz.sigstore.json
531- tag_name : nightly-${{ steps.tag.outputs.TAG }}
532- name : DPC++ daily ${{ steps.tag.outputs.TAG }}
533- prerelease : true
534- body : " Daily build ${{ steps.tag.outputs.TAG }}"
535- target_commitish : ${{ github.sha }}
536-
537- docker_build_push :
538- if : github.repository == 'intel/llvm'
539- runs-on : [Linux, build]
540- permissions :
541- packages : write
542- needs : ubuntu2204_build
543- steps :
544- - uses : actions/checkout@v5
545- - uses : actions/download-artifact@v6
546- with :
547- name : sycl_linux_default
548- path : devops/
549- - name : Build and Push Container
550- uses : ./devops/actions/build_container
551- with :
552- push : ${{ github.ref_name == 'sycl' }}
553- file : nightly
554- username : ${{ github.repository_owner }}
555- password : ${{ secrets.GITHUB_TOKEN }}
556- build-args : |
557- base_image=ghcr.io/intel/llvm/ubuntu2404_intel_drivers
558- base_tag=alldeps
559- tags : |
560- ghcr.io/${{ github.repository }}/sycl_ubuntu2404_nightly:${{ github.sha }}
561- ghcr.io/${{ github.repository }}/sycl_ubuntu2404_nightly:latest
0 commit comments