Skip to content

Commit f56b784

Browse files
committed
Merge remote-tracking branch 'origin/sycl' into llvmspirv_pulldown
Conflicts: libclc/CMakeLists.txt libclc/clc/include/clc/clcfunc.h libclc/generic/include/clc/clc.h libclc/libspirv/include/libspirv/spirv.h
2 parents 90af614 + 81a48a6 commit f56b784

File tree

507 files changed

+10239
-17553
lines changed

Some content is hidden

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

507 files changed

+10239
-17553
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ sycl/doc/syclgraph/ @intel/sycl-graphs-reviewers
177177
sycl/**/syclcompat/ @intel/syclcompat-lib-reviewers
178178
sycl/cmake/modules/AddSYCLLibraryUnitTest.cmake @intel/syclcompat-lib-reviewers
179179
sycl/include/syclcompat.hpp @intel/syclcompat-lib-reviewers
180+
sycl/test-e2e/syclcompat/ @intel/syclcompat-lib-reviewers
180181

181182
# bindless images
182183
sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc @intel/bindless-images-reviewers

.github/workflows/sycl-containers-igc-dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
paths:
88
- 'devops/actions/build_container/**'
99
- 'devops/scripts/**'
10+
- '!devops/scripts/benchmarks/**'
1011
- 'devops/dependencies-igc-dev.json'
1112
- '.github/workflows/sycl-containers-igc-dev.yaml'
1213
pull_request:
1314
paths:
1415
- 'devops/actions/build_container/**'
1516
- 'devops/scripts/**'
17+
- '!devops/scripts/benchmarks/**'
1618
- 'devops/dependencies-igc-dev.json'
1719
- '.github/workflows/sycl-containers-igc-dev.yaml'
1820

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
build_artifact_suffix:
3333
type: string
3434
required: true
35+
build_target:
36+
type: string
37+
required: false
38+
default: sycl-toolchain
3539
artifact_archive_name:
3640
type: string
3741
default: llvm_sycl.tar.zst
@@ -177,7 +181,8 @@ jobs:
177181
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
178182
- name: Compile
179183
id: build
180-
run: cmake --build $GITHUB_WORKSPACE/build --target sycl-toolchain
184+
# Emulate default value for manual dispatch as we've run out of available arguments.
185+
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
181186
- name: check-llvm
182187
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
183188
run: |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ jobs:
321321
- name: Run SYCL CTS Tests
322322
if: inputs.tests_selector == 'cts'
323323
uses: ./devops/actions/run-tests/cts
324+
# Normally this job takes less than 10m. But sometimes it hangs up and
325+
# reaches the 360m limit. Set a lower limit to free up the runner earlier.
326+
timeout-minutes: 35
324327
with:
325328
ref: ${{ inputs.tests_ref || 'main' }}
326329
cts_exclude_ref: ${{ inputs.repo_ref }}

.github/workflows/sycl-nightly.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
build_cache_suffix: sprod_shared
3434
build_artifact_suffix: sprod_shared
3535
build_configure_extra_args: '--shared-libs --hip --cuda --native_cpu --no-assertions'
36+
build_target: all
3637

3738
artifact_archive_name: sycl_linux_shared.tar.zst
3839

@@ -151,6 +152,7 @@ jobs:
151152
artifact_archive_name: sycl_windows.tar.gz
152153
# Disable the spirv-dis requirement as to not require SPIR-V Tools.
153154
build_configure_extra_args: -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off
155+
build_target: all
154156

155157
e2e-win:
156158
needs: build-win
@@ -217,9 +219,6 @@ jobs:
217219
run-sycl-cts-linux:
218220
needs: [ubuntu2204_build, build-sycl-cts-linux]
219221
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
220-
# Normally these jobs take less than 10m. But sometimes the job hangs up and
221-
# reaches the 360m limit. Set a lower limit to free up the runner earlier.
222-
timeout-minutes: 35
223222
strategy:
224223
fail-fast: false
225224
matrix:

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
build_configure_extra_args:
1111
type: string
1212
required: false
13+
build_target:
14+
type: string
15+
required: false
16+
default: sycl-toolchain
1317
changes:
1418
type: string
1519
description: 'Filter matches for the changed files in the PR'
@@ -58,6 +62,11 @@ on:
5862
build_configure_extra_args:
5963
type: string
6064
required: false
65+
build_target:
66+
type: choice
67+
options:
68+
- "sycl-toolchain"
69+
- "all"
6170
artifact_archive_name:
6271
type: choice
6372
options:
@@ -143,7 +152,7 @@ jobs:
143152
id: build
144153
shell: bash
145154
run: |
146-
cmake --build build --target sycl-toolchain
155+
cmake --build build --target ${{ inputs.build_target }}
147156
- name: check-llvm
148157
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
149158
shell: bash

.github/workflows/ur-build-hw.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ jobs:
144144
-DUR_DEVELOPER_MODE=ON
145145
-DUR_BUILD_TESTS=ON
146146
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
147-
-DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
148147
${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
149148
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
150149
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
@@ -165,14 +164,16 @@ jobs:
165164
- name: Test adapter specific
166165
env:
167166
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
168-
run: ctest -C ${{matrix.build_type}} --test-dir build --output-on-failure -L "adapter-specific" -E "memcheck" --timeout 600 -VV
167+
LIT_OPTS: "--timeout 120 --filter-out 'adapters/level_zero/memcheck.test'"
168+
run: cmake --build build -j $(nproc) -- check-unified-runtime-adapter
169169
# Don't run adapter specific tests when building multiple adapters
170170
if: ${{ matrix.adapter.other_name == '' }}
171171

172172
- name: Test adapters
173173
env:
174174
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
175-
run: ctest -C ${{matrix.build_type}} --test-dir build --output-on-failure -L "conformance" --timeout 600 -VV
175+
LIT_OPTS: "--timeout 120"
176+
run: cmake --build build -j $(nproc) -- check-unified-runtime-conformance
176177

177178
- name: Get information about platform
178179
if: ${{ always() }}

clang/include/clang/Basic/Attr.td

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,12 +1637,14 @@ def SYCLType: InheritableAttr {
16371637
let Subjects = SubjectList<[CXXRecord, Enum], ErrorDiag>;
16381638
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
16391639
let Args = [EnumArgument<"Type", "SYCLType", /*is_string=*/true,
1640-
["accessor", "local_accessor", "work_group_memory", "dynamic_work_group_memory",
1640+
["accessor", "local_accessor", "dynamic_local_accessor",
1641+
"work_group_memory", "dynamic_work_group_memory",
16411642
"specialization_id", "kernel_handler", "buffer_location",
16421643
"no_alias", "accessor_property_list", "group",
16431644
"private_memory", "aspect", "annotated_ptr", "annotated_arg",
16441645
"stream", "sampler", "host_pipe", "multi_ptr"],
1645-
["accessor", "local_accessor", "work_group_memory", "dynamic_work_group_memory",
1646+
["accessor", "local_accessor", "dynamic_local_accessor",
1647+
"work_group_memory", "dynamic_work_group_memory",
16461648
"specialization_id", "kernel_handler", "buffer_location",
16471649
"no_alias", "accessor_property_list", "group",
16481650
"private_memory", "aspect", "annotated_ptr", "annotated_arg",

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ def warn_drv_unsupported_option_for_offload_arch_req_feature : Warning<
142142
"ignoring '%0' option for offload arch '%1' as it is not currently supported "
143143
"there. Use it with an offload arch containing '%2' instead">,
144144
InGroup<OptionIgnored>;
145-
def warn_drv_unsupported_option_for_target : Warning<
146-
"ignoring '%0' option as it is not currently supported for target '%1'">,
147-
InGroup<OptionIgnored>;
145+
def warn_drv_unsupported_option_for_target
146+
: Warning<"ignoring '%0' option as it is not currently supported for "
147+
"target '%1'%select{|; only supported for host compilation}2">,
148+
InGroup<OptionIgnored>;
148149
def warn_drv_unsupported_option_for_flang : Warning<
149150
"the argument '%0' is not supported for option '%1'. Mapping to '%1%2'">,
150151
InGroup<OptionIgnored>;

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12928,7 +12928,8 @@ def err_free_function_variadic_args : Error<
1292812928
"free function kernel cannot be a variadic function">;
1292912929
def err_free_function_return_type : Error<
1293012930
"SYCL free function kernel should have return type 'void'">;
12931-
12931+
def err_free_function_first_occurrence_missing_attr: Error<
12932+
"the first occurrence of SYCL kernel free function should be declared with 'sycl-nd-range-kernel' or 'sycl-single-task-kernel' compile time properties">;
1293212933

1293312934
// SYCL kernel entry point diagnostics
1293412935
def err_sycl_entry_point_invalid : Error<

0 commit comments

Comments
 (0)