Skip to content

Commit 7ec7639

Browse files
committed
Merge remote-tracking branch 'upstream/sycl' into rtc-devglobs
2 parents a8868fb + c7cce70 commit 7ec7639

File tree

98 files changed

+4208
-2866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+4208
-2866
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
build_image:
1515
type: string
1616
required: false
17-
default: "ghcr.io/intel/llvm/ubuntu2404_build:latest"
17+
default: "ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
1818
build_ref:
1919
type: string
2020
required: false
@@ -40,16 +40,13 @@ on:
4040
description: 'Filter matches for the changed files in the PR'
4141
default: '[llvm, clang, sycl, llvm_spirv, xptifw, libclc, libdevice]'
4242
required: false
43-
merge_ref:
44-
description: |
45-
Commit-ish to merge post-checkout if non-empty. Must be reachable from
46-
the default_branch input paramter.
47-
type: string
48-
default: 'FETCH_HEAD'
4943
retention-days:
5044
description: 'Artifacts retention period'
5145
type: string
5246
default: 3
47+
e2e_binaries_artifact:
48+
type: string
49+
required: False
5350

5451
outputs:
5552
build_conclusion:
@@ -70,7 +67,7 @@ on:
7067
build_image:
7168
type: choice
7269
options:
73-
- "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
70+
- 'ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest'
7471
cc:
7572
type: choice
7673
options:
@@ -150,7 +147,6 @@ jobs:
150147
with:
151148
path: src
152149
ref: ${{ inputs.build_ref || github.sha }}
153-
merge_ref: ${{ inputs.merge_ref }}
154150
cache_path: "/__w/repo_cache/"
155151
- name: Setup oneAPI env
156152
if: ${{ inputs.cc == 'icx' || inputs.cxx == 'icpx' }}
@@ -252,3 +248,37 @@ jobs:
252248
name: sycl_linux_${{ inputs.build_artifact_suffix }}
253249
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
254250
retention-days: ${{ inputs.retention-days }}
251+
252+
- name: Copy toolchain
253+
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
254+
# We must have the compiler in the same location as it will be in the E2E
255+
# run-tests job.
256+
run: cp -r $GITHUB_WORKSPACE/build/install $GITHUB_WORKSPACE/toolchain
257+
258+
- name: Source OneAPI TBB vars.sh
259+
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
260+
shell: bash
261+
run: |
262+
# https://github.com/actions/runner/issues/1964 prevents us from using
263+
# the ENTRYPOINT in the image.
264+
env | sort > env_before
265+
if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
266+
source /runtimes/oneapi-tbb/env/vars.sh;
267+
elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then
268+
source /opt/runtimes/oneapi-tbb/env/vars.sh;
269+
else
270+
echo "no TBB vars in /opt/runtimes or /runtimes";
271+
fi
272+
env | sort > env_after
273+
comm -13 env_before env_after >> $GITHUB_ENV
274+
rm env_before env_after
275+
276+
- name: Build E2E tests
277+
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
278+
uses: ./devops/actions/run-tests/e2e
279+
with:
280+
ref: ${{ inputs.ref || github.sha }}
281+
testing_mode: build-only
282+
target_devices: all
283+
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
284+
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++

.github/workflows/sycl-linux-precommit-aws.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
# No idea why but that seems to work and be in sync with the main
7373
# pre-commit workflow.
7474
ref: ${{ github.event.workflow_run.referenced_workflows[0].sha }}
75-
merge_ref: ''
7675

7776
sycl_toolchain_artifact: sycl_linux_default
7877
sycl_toolchain_archive: llvm_sycl.tar.zst

.github/workflows/sycl-linux-precommit.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ jobs:
4141
uses: ./.github/workflows/sycl-linux-build.yml
4242
with:
4343
build_ref: ${{ github.sha }}
44-
merge_ref: ''
4544
build_cache_root: "/__w/"
4645
build_artifact_suffix: "default"
4746
build_cache_suffix: "default"
4847
# Docker image has last nightly pre-installed and added to the PATH
49-
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
48+
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest"
5049
cc: clang
5150
cxx: clang++
5251
changes: ${{ needs.detect_changes.outputs.filters }}
52+
e2e_binaries_artifact: sycl_e2e_bin_default
5353

5454
determine_arc_tests:
5555
name: Decide which Arc tests to run
@@ -73,23 +73,8 @@ jobs:
7373
echo 'arc_tests="Matrix/"' >> "$GITHUB_OUTPUT"
7474
fi
7575
76-
build_e2e_tests:
77-
needs: [build]
78-
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
79-
uses: ./.github/workflows/sycl-linux-run-tests.yml
80-
with:
81-
name: Build e2e tests
82-
runner: '["Linux", "build"]'
83-
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
84-
image_options: -u 1001
85-
ref: ${{ github.sha }}
86-
merge_ref: ''
87-
sycl_toolchain_artifact: sycl_linux_default
88-
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
89-
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
90-
e2e_testing_mode: 'build-only'
9176
run_prebuilt_e2e_tests:
92-
needs: [build, build_e2e_tests]
77+
needs: [build]
9378
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
9479
strategy:
9580
fail-fast: false
@@ -112,7 +97,6 @@ jobs:
11297
extra_lit_opts: --param fallback-to-build-if-requires-build-and-run=True ${{ matrix.extra_lit_opts }}
11398
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
11499
ref: ${{ github.sha }}
115-
merge_ref: ''
116100
sycl_toolchain_artifact: sycl_linux_default
117101
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
118102
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
@@ -194,7 +178,6 @@ jobs:
194178
skip_run: ${{matrix.use_igc_dev && contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') || 'false'}}
195179

196180
ref: ${{ github.sha }}
197-
merge_ref: ''
198181

199182
sycl_toolchain_artifact: sycl_linux_default
200183
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
@@ -243,7 +226,6 @@ jobs:
243226
extra_lit_opts: -a -j 1 --param enable-perf-tests=True
244227

245228
ref: ${{ github.sha }}
246-
merge_ref: ''
247229

248230
sycl_toolchain_artifact: sycl_linux_default
249231
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ on:
3838
ref:
3939
type: string
4040
required: True
41-
merge_ref:
42-
description: |
43-
Commit-ish to merge post-checkout if non-empty. Must be reachable from
44-
the default_branch input paramter.
45-
type: string
46-
default: 'FETCH_HEAD'
47-
required: False
4841

4942
sycl_toolchain_artifact:
5043
type: string
@@ -61,23 +54,18 @@ on:
6154

6255
e2e_binaries_artifact:
6356
description: |
64-
By setting this the E2E binaries folder will not be created, rather it
65-
will be downloaded and extracted from the specified artifact. When
66-
running tests in `run-only` mode this must be provided.
57+
Must be set if `e2e_testing_mode` is equal to `run-only` and the
58+
artifact must exist. Can be set in other modes resulting in artifact
59+
upload.
6760
type: string
6861
default: ''
6962
required: False
7063
e2e_testing_mode:
7164
description: |
7265
Testing mode to run E2E tests in, can be either `full`, `build-only`
73-
or `run-only`. In `build-only` mode an artifact of the E2E binaries
74-
will be uploaded.
66+
or `run-only`.
7567
type: string
7668
default: 'full'
77-
artifact_suffix:
78-
description: 'Suffix for E2E binaries artifact that is output when in `build-only`.'
79-
type: string
80-
default: 'default'
8169
retention-days:
8270
description: 'E2E/SYCL-CTS binaries artifact retention period.'
8371
type: string
@@ -296,13 +284,11 @@ jobs:
296284
uses: ./devops/actions/run-tests/e2e
297285
with:
298286
ref: ${{ inputs.ref || github.sha }}
299-
merge_ref: ${{ inputs.merge_ref }}
300-
e2e_binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
287+
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
288+
testing_mode: ${{ inputs.e2e_testing_mode }}
301289
extra_cmake_args: ${{ inputs.extra_cmake_args }}
302-
e2e_testing_mode: ${{ inputs.e2e_testing_mode }}
303290
target_devices: ${{ inputs.target_devices }}
304291
extra_lit_opts: ${{ inputs.extra_lit_opts }}
305-
artifact_suffix: ${{ inputs.artifact_suffix }}
306292
retention-days: ${{ inputs.retention-days }}
307293

308294
- name: Run SYCL CTS Tests

.github/workflows/sycl-nightly.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
build_artifact_suffix: default
1818
build_configure_extra_args: '--hip --cuda'
1919
build_image: ghcr.io/intel/llvm/ubuntu2204_build:latest
20-
merge_ref: ''
2120
retention-days: 90
2221

2322
# We upload the build for people to download/use, override its name and
@@ -33,7 +32,6 @@ jobs:
3332
build_cache_suffix: sprod_shared
3433
build_artifact_suffix: sprod_shared
3534
build_configure_extra_args: '--shared-libs --hip --cuda --native_cpu'
36-
merge_ref: ''
3735

3836
artifact_archive_name: sycl_linux_shared.tar.zst
3937

@@ -112,7 +110,6 @@ jobs:
112110
extra_lit_opts: "--param 'cxx_flags=-D_GLIBCXX_USE_CXX11_ABI=0' ${{ matrix.extra_lit_opts }}"
113111
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
114112
ref: ${{ github.sha }}
115-
merge_ref: ''
116113
sycl_toolchain_artifact: sycl_linux_default
117114
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
118115
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
@@ -129,7 +126,6 @@ jobs:
129126
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
130127
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
131128
ref: ${{ github.sha }}
132-
merge_ref: ''
133129
sycl_toolchain_artifact: sycl_linux_oneapi
134130
sycl_toolchain_archive: ${{ needs.ubuntu2404_oneapi_build.outputs.artifact_archive_name }}
135131
sycl_toolchain_decompress_command: ${{ needs.ubuntu2404_oneapi_build.outputs.artifact_decompress_command }}
@@ -175,7 +171,6 @@ jobs:
175171
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
176172
target_devices: cuda:gpu
177173
ref: ${{ github.sha }}
178-
merge_ref: ''
179174

180175
sycl_toolchain_artifact: sycl_linux_default
181176
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}

.github/workflows/sycl-post-commit.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
build_cache_suffix: default
3737
build_artifact_suffix: default
3838
build_configure_extra_args: --no-assertions --hip --cuda --native_cpu --cmake-opt="-DSYCL_ENABLE_STACK_PRINTING=ON" --cmake-opt="-DSYCL_LIB_WITH_DEBUG_SYMBOL=ON"
39-
merge_ref: ''
4039

4140
e2e-lin:
4241
needs: [build-lin]
@@ -90,7 +89,6 @@ jobs:
9089
env: ${{ matrix.env || '{}' }}
9190

9291
ref: ${{ github.sha }}
93-
merge_ref: ''
9492

9593
sycl_toolchain_artifact: sycl_linux_default
9694
sycl_toolchain_archive: ${{ needs.build-lin.outputs.artifact_archive_name }}
@@ -104,10 +102,9 @@ jobs:
104102
uses: ./.github/workflows/sycl-windows-build.yml
105103
with:
106104
compiler: icx
107-
build_configure_extra_args: --cmake-opt=-DCMAKE_C_FLAGS="/clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" --cmake-opt=-DCMAKE_CXX_FLAGS="/clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" --cmake-opt="-DCMAKE_EXE_LINKER_FLAGS=/manifest:no" --cmake-opt="-DCMAKE_MODULE_LINKER_FLAGS=/manifest:no" --cmake-opt="-DCMAKE_SHARED_LINKER_FLAGS=/manifest:no"
105+
build_configure_extra_args: --cmake-opt=-DCMAKE_C_FLAGS="/fp:precise /clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" --cmake-opt=-DCMAKE_CXX_FLAGS="/fp:precise /clang:-Wno-nonportable-include-path /clang:-Wno-cast-function-type-mismatch" --cmake-opt="-DCMAKE_EXE_LINKER_FLAGS=/manifest:no" --cmake-opt="-DCMAKE_MODULE_LINKER_FLAGS=/manifest:no" --cmake-opt="-DCMAKE_SHARED_LINKER_FLAGS=/manifest:no"
108106
build_cache_suffix: icx
109-
merge_ref: ''
110-
107+
111108
e2e-win:
112109
needs: build-win
113110
# Continue if build was successful.
@@ -121,7 +118,6 @@ jobs:
121118
runner: '["Windows","gen12"]'
122119
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
123120
compiler: icx
124-
merge_ref: ''
125121

126122
macos_default:
127123
name: macOS

.github/workflows/sycl-rel-nightly.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
build_artifact_suffix: default
4040
build_configure_extra_args: '--hip --cuda'
4141
build_image: ghcr.io/intel/llvm/ubuntu2204_build:latest
42-
merge_ref: ''
4342
build_ref: sycl-rel-6_0_0
4443

4544
# We upload the build for people to download/use, override its name and
@@ -109,7 +108,6 @@ jobs:
109108
extra_lit_opts: ${{ matrix.extra_lit_opts }}
110109
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
111110
ref: sycl-rel-6_0_0
112-
merge_ref: ''
113111
sycl_toolchain_artifact: sycl_linux_default
114112
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
115113
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
@@ -120,7 +118,6 @@ jobs:
120118
uses: ./.github/workflows/sycl-windows-build.yml
121119
with:
122120
ref: sycl-rel-6_0_0
123-
merge_ref: ''
124121

125122
# We upload both Linux/Windows build via Github's "Releases"
126123
# functionality, make sure Linux/Windows names follow the same pattern.
@@ -140,7 +137,6 @@ jobs:
140137
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
141138
extra_lit_opts: --param gpu-intel-gen12=True
142139
ref: sycl-rel-6_0_0
143-
merge_ref: ''
144140

145141
cuda-aws-start:
146142
needs: [ubuntu2204_build]
@@ -162,7 +158,6 @@ jobs:
162158
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
163159
target_devices: cuda:gpu
164160
ref: sycl-rel-6_0_0
165-
merge_ref: ''
166161

167162
sycl_toolchain_artifact: sycl_linux_default
168163
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}

0 commit comments

Comments
 (0)