Skip to content

Commit f78eed1

Browse files
committed
Merge remote-tracking branch 'upstream/sycl' into jakub/debug_output
2 parents da58b93 + 9daddae commit f78eed1

File tree

330 files changed

+11515
-7058
lines changed

Some content is hidden

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

330 files changed

+11515
-7058
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ clang/test/Driver/sycl-native-cpu*.cpp @intel/dpcpp-nativecpu-pi-reviewers
129129
sycl/**/native_cpu/ @intel/dpcpp-nativecpu-pi-reviewers
130130
sycl/doc/design/SYCLNativeCPU.md @intel/dpcpp-nativecpu-pi-reviewers
131131
sycl/include/sycl/detail/native_cpu.hpp @intel/dpcpp-nativecpu-pi-reviewers
132+
libdevice/nativecpu* @intel/dpcpp-nativecpu-pi-reviewers
132133

133134
# SYCL-Graphs extensions
134135
sycl/include/sycl/ext/oneapi/experimental/graph.hpp @intel/sycl-graphs-reviewers

.github/workflows/sycl-nightly.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ jobs:
2323
# prefer widespread gzip compression.
2424
artifact_archive_name: sycl_linux.tar.gz
2525

26+
ubuntu2204_shared_build:
27+
if: github.repository == 'intel/llvm'
28+
uses: ./.github/workflows/sycl-linux-build.yml
29+
secrets: inherit
30+
with:
31+
build_cache_root: "/__w/"
32+
build_cache_suffix: sprod_shared
33+
build_artifact_suffix: sprod_shared
34+
build_configure_extra_args: '--shared-libs --hip --cuda --native_cpu'
35+
merge_ref: ''
36+
37+
artifact_archive_name: sycl_linux_shared.tar.zst
38+
2639
ubuntu2204_test:
2740
needs: [ubuntu2204_build]
2841
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
@@ -120,7 +133,7 @@ jobs:
120133
if: |
121134
always()
122135
&& !cancelled()
123-
&& needs.build.outputs.build_conclusion == 'success'
136+
&& needs.build-win.outputs.build_conclusion == 'success'
124137
uses: ./.github/workflows/sycl-windows-run-tests.yml
125138
with:
126139
name: Intel GEN12 Graphics with Level Zero

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

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,13 @@ permissions: read-all
2828

2929
jobs:
3030
build-lin:
31-
name: Linux (Self build + shared libraries + no-assertions)
31+
name: Linux (Self build + no-assertions)
3232
if: github.repository == 'intel/llvm'
3333
uses: ./.github/workflows/sycl-linux-build.yml
3434
with:
3535
build_cache_root: "/__w/llvm"
36-
build_cache_suffix: sprod_shared
37-
build_artifact_suffix: sprod_shared
38-
build_configure_extra_args: --shared-libs --no-assertions --hip --cuda --native_cpu --cmake-opt="-DSYCL_ENABLE_STACK_PRINTING=ON" --cmake-opt="-DSYCL_LIB_WITH_DEBUG_SYMBOL=ON"
39-
# Docker image has last nightly pre-installed and added to the PATH
40-
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
41-
cc: clang
42-
cxx: clang++
43-
merge_ref: ''
44-
45-
build-lin-static:
46-
name: Linux (Self build + static libraries + no-assertions)
47-
if: github.repository == 'intel/llvm'
48-
uses: ./.github/workflows/sycl-linux-build.yml
49-
with:
50-
build_cache_root: "/__w/llvm"
51-
build_cache_suffix: sprod_static
52-
build_artifact_suffix: sprod_static
36+
build_cache_suffix: default
37+
build_artifact_suffix: default
5338
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"
5439
# Docker image has last nightly pre-installed and added to the PATH
5540
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
@@ -58,7 +43,7 @@ jobs:
5843
merge_ref: ''
5944

6045
e2e-lin:
61-
needs: [build-lin, build-lin-static]
46+
needs: [build-lin]
6247
if: ${{ always() && !cancelled() && needs.build-lin.outputs.build_conclusion == 'success' }}
6348
strategy:
6449
fail-fast: false
@@ -79,10 +64,6 @@ jobs:
7964
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd
8065
target_devices: ext_oneapi_hip:gpu
8166
reset_intel_gpu: false
82-
# Use static build because of shared lld packaging issue
83-
sycl_toolchain_artifact: sycl_linux_sprod_static
84-
sycl_toolchain_archive: ${{ needs.build-lin-static.outputs.artifact_archive_name }}
85-
sycl_toolchain_decompress_command: ${{ needs.build-lin-static.outputs.artifact_decompress_command }}
8667
# Performance tests below. Specifics:
8768
# - only run performance tests (use LIT_FILTER env)
8869
# - ask llvm-lit to show all the output, even for PASS (-a)
@@ -116,9 +97,9 @@ jobs:
11697
ref: ${{ github.sha }}
11798
merge_ref: ''
11899

119-
sycl_toolchain_artifact: ${{ matrix.sycl_toolchain_artifact || 'sycl_linux_sprod_shared' }}
120-
sycl_toolchain_archive: ${{ matrix.sycl_toolchain_archive || needs.build-lin.outputs.artifact_archive_name }}
121-
sycl_toolchain_decompress_command: ${{ matrix.sycl_toolchain_decompress_command || needs.build-lin.outputs.artifact_decompress_command }}
100+
sycl_toolchain_artifact: sycl_linux_default
101+
sycl_toolchain_archive: ${{ needs.build-lin.outputs.artifact_archive_name }}
102+
sycl_toolchain_decompress_command: ${{ needs.build-lin.outputs.artifact_decompress_command }}
122103

123104
build-win:
124105
if: |

buildbot/configure.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def do_configure(args):
5959
llvm_enable_sphinx = "OFF"
6060
llvm_build_shared_libs = "OFF"
6161
llvm_enable_lld = "OFF"
62-
sycl_enabled_plugins = ["opencl"]
62+
sycl_enabled_backends = ["opencl"]
6363
sycl_preview_lib = "ON"
6464

6565
sycl_enable_xpti_tracing = "ON"
6666
xpti_enable_werror = "OFF"
6767

6868
if sys.platform != "darwin":
69-
sycl_enabled_plugins.append("level_zero")
69+
sycl_enabled_backends.append("level_zero")
7070

7171
# lld is needed on Windows or for the HIP plugin on AMD
7272
if platform.system() == "Windows" or (args.hip and args.hip_platform == "AMD"):
@@ -80,7 +80,7 @@ def do_configure(args):
8080
llvm_targets_to_build += ";NVPTX"
8181
libclc_targets_to_build = libclc_nvidia_target_names
8282
libclc_gen_remangled_variants = "ON"
83-
sycl_enabled_plugins.append("cuda")
83+
sycl_enabled_backends.append("cuda")
8484

8585
if args.hip:
8686
if args.hip_platform == "AMD":
@@ -93,15 +93,15 @@ def do_configure(args):
9393
libclc_gen_remangled_variants = "ON"
9494

9595
sycl_build_pi_hip_platform = args.hip_platform
96-
sycl_enabled_plugins.append("hip")
96+
sycl_enabled_backends.append("hip")
9797

9898
if args.native_cpu:
9999
if args.native_cpu_libclc_targets:
100100
libclc_targets_to_build += ";" + args.native_cpu_libclc_targets
101101
else:
102102
libclc_build_native = "ON"
103103
libclc_gen_remangled_variants = "ON"
104-
sycl_enabled_plugins.append("native_cpu")
104+
sycl_enabled_backends.append("native_cpu")
105105

106106
# all llvm compiler targets don't require 3rd party dependencies, so can be
107107
# built/tested even if specific runtimes are not available
@@ -153,7 +153,7 @@ def do_configure(args):
153153
libclc_gen_remangled_variants = "ON"
154154

155155
if args.enable_plugin:
156-
sycl_enabled_plugins += args.enable_plugin
156+
sycl_enabled_backends += args.enable_plugin
157157

158158
if args.disable_preview_lib:
159159
sycl_preview_lib = "OFF"
@@ -188,7 +188,7 @@ def do_configure(args):
188188
"-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld),
189189
"-DXPTI_ENABLE_WERROR={}".format(xpti_enable_werror),
190190
"-DSYCL_CLANG_EXTRA_FLAGS={}".format(sycl_clang_extra_flags),
191-
"-DSYCL_ENABLE_PLUGINS={}".format(";".join(set(sycl_enabled_plugins))),
191+
"-DSYCL_ENABLE_BACKENDS={}".format(";".join(set(sycl_enabled_backends))),
192192
"-DSYCL_ENABLE_EXTENSION_JIT={}".format(sycl_enable_jit),
193193
"-DSYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB={}".format(sycl_preview_lib),
194194
"-DBUG_REPORT_URL=https://github.com/intel/llvm/issues",

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def warn_drv_mismatch_fpga_archive : Warning<
217217
def warn_drv_sycl_native_cpu_and_targets: Warning<
218218
"-fsycl-targets=native_cpu overrides SYCL targets option">,
219219
InGroup<SyclNativeCPUTargets>;
220-
def err_drv_unsupported_opt_dpcpp : Error<"option '%0' unsupported with DPC++">;
220+
def err_drv_unsupported_opt_sycl : Error<
221+
"option '%0' not supported with SYCL compilation">;
221222
def err_drv_argument_only_allowed_with : Error<
222223
"invalid argument '%0' only allowed with '%1'">;
223224
def err_drv_opt_unsupported_input_type : Error<
@@ -389,8 +390,6 @@ def err_drv_fsycl_with_c_type : Error<
389390
"'%0' must not be used in conjunction with '-fsycl', which expects C++ source">;
390391
def err_drv_fsycl_with_pch : Error<
391392
"precompiled header generation is not supported with '-fsycl'">;
392-
def err_drv_fsycl_unsupported_with_opt
393-
: Error<"'%0' is not supported with '-fsycl'">;
394393
def warn_drv_opt_requires_opt
395394
: Warning<"'%0' should be used only in conjunction with '%1'">, InGroup<UnusedCommandLineArgument>;
396395
def err_drv_sycl_missing_amdgpu_arch : Error<

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,9 +1375,8 @@ def OpenMP : DiagGroup<"openmp", [
13751375
]>;
13761376

13771377
// SYCL warnings
1378-
def Sycl2017Compat : DiagGroup<"sycl-2017-compat">;
13791378
def Sycl2020Compat : DiagGroup<"sycl-2020-compat">;
1380-
def SyclStrict : DiagGroup<"sycl-strict", [ Sycl2017Compat, Sycl2020Compat]>;
1379+
def SyclStrict : DiagGroup<"sycl-strict", [ Sycl2020Compat]>;
13811380
def SyclTarget : DiagGroup<"sycl-target">;
13821381
def SyclFPGAMismatch : DiagGroup<"sycl-fpga-mismatch">;
13831382
def SyclAspectMismatch : DiagGroup<"sycl-aspect-mismatch">;

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12485,14 +12485,6 @@ def err_sycl_invalid_aspect_argument : Error<
1248512485
def warn_sycl_pass_by_value_deprecated
1248612486
: Warning<"passing kernel functions by value is deprecated in SYCL 2020">,
1248712487
InGroup<Sycl2020Compat>, ShowInSystemHeader;
12488-
def warn_sycl_pass_by_reference_future
12489-
: Warning<"passing of kernel functions by reference is a SYCL 2020 extension">,
12490-
InGroup<Sycl2017Compat>, ShowInSystemHeader;
12491-
def warn_sycl_implicit_decl
12492-
: Warning<"SYCL 1.2.1 specification requires an explicit forward "
12493-
"declaration for a kernel type name; your program may not "
12494-
"be portable">,
12495-
InGroup<SyclStrict>, ShowInSystemHeader, DefaultIgnore;
1249612488
def warn_sycl_potentially_invalid_as_cast : Warning<
1249712489
"explicit cast from %0 to %1 potentially leads to an invalid address space"
1249812490
" cast in the resulting code">, InGroup<SyclStrict>,
@@ -12528,9 +12520,6 @@ def err_sycl_mismatch_group_size
1252812520
def note_sycl_kernel_declared_here : Note<"kernel declared here">;
1252912521
def err_sycl_expected_finalize_method : Error<
1253012522
"expected a 'finalize' method for the 'stream' class">;
12531-
def ext_sycl_2020_attr_spelling : ExtWarn<
12532-
"use of attribute %0 is a SYCL 2020 extension">,
12533-
InGroup<Sycl2017Compat>;
1253412523
def err_sycl_esimd_not_supported_for_type : Error<
1253512524
"type %0 is not supported in ESIMD context">;
1253612525
def err_sycl_taking_address_of_wrong_function : Error<

clang/include/clang/Basic/LangOptions.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,13 @@ class LangOptionsBase {
146146

147147
enum SYCLMajorVersion {
148148
SYCL_None,
149-
SYCL_2017,
150149
SYCL_2020,
151150
// The "default" SYCL version to be used when none is specified on the
152151
// frontend command line.
153152
SYCL_Default = SYCL_2020
154153
};
155154

156155
enum class SYCLVersionList {
157-
sycl_1_2_1,
158156
undefined
159157
};
160158

clang/include/clang/Basic/SourceManager.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,19 @@ class SourceManager : public RefCountedBase<SourceManager> {
906906
/// Get the file ID for the precompiled preamble if there is one.
907907
FileID getPreambleFileID() const { return PreambleFileID; }
908908

909+
/// Get the file ID for the integration footer.
910+
FileID ComputeValidFooterFileID(StringRef Footer) {
911+
FileID FooterFileID;
912+
llvm::Expected<FileEntryRef> ExpectedFileRef =
913+
getFileManager().getFileRef(Footer);
914+
if (ExpectedFileRef) {
915+
FooterFileID = getOrCreateFileID(ExpectedFileRef.get(),
916+
SrcMgr::CharacteristicKind::C_User);
917+
}
918+
assert(FooterFileID.isValid() && "expecting a valid footer FileID");
919+
return FooterFileID;
920+
}
921+
909922
//===--------------------------------------------------------------------===//
910923
// Methods to create new FileID's and macro expansions.
911924
//===--------------------------------------------------------------------===//

0 commit comments

Comments
 (0)