Skip to content

Commit 3127da6

Browse files
committed
Merge remote-tracking branch 'intel/sycl' into sycl-address-spaces
2 parents 665ea95 + 1754934 commit 3127da6

File tree

4,680 files changed

+268924
-60592
lines changed

Some content is hidden

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

4,680 files changed

+268924
-60592
lines changed

.github/CODEOWNERS

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ clang/**/Driver @mdtoguchi @AGindinson
99
# LLVM-SPIRV translator
1010
llvm-spirv/ @AlexeySotkin @AlexeySachkov
1111

12+
# OpenCL deps
13+
opencl/ @pvchupin @vladimirlaz
14+
1215
# OpenCL "offline" compiler
13-
opencl-aot/ @dm-vodopyanov @AlexeySachkov @romanovvlad
16+
opencl/opencl-aot/ @dm-vodopyanov @AlexeySachkov @romanovvlad
1417

1518
# Device library
1619
libdevice/ @vzakhari @jinge90
@@ -20,19 +23,9 @@ sycl/ @intel/llvm-reviewers-runtime
2023

2124
# Documentation
2225
sycl/ReleaseNotes.md @pvchupin
23-
sycl/doc/ @pvchupin @kbobrovs
26+
sycl/doc/ @pvchupin @bader
2427
sycl/doc/extensions/ @intel/dpcpp-specification-reviewers
2528

26-
# USM
27-
sycl/include/CL/sycl/detail/clusm.hpp @jbrodman
28-
sycl/include/CL/sycl/detail/usm_impl.hpp @jbrodman
29-
sycl/include/CL/sycl/usm/ @jbrodman
30-
sycl/include/CL/sycl/ordered_queue.hpp @jbrodman
31-
sycl/include/CL/sycl/usm.hpp @jbrodman
32-
sycl/include/CL/cl_usm_ext.h @jbrodman
33-
sycl/source/detail/usm/ @jbrodman
34-
sycl/source/ordered_queue.cpp @jbrodman
35-
3629
# Sub-groups
3730
sycl/include/CL/sycl/detail/spirv.hpp @Pennycook @AlexeySachkov
3831
sycl/include/CL/sycl/intel/group_algorithm.hpp @Pennycook @AlexeySachkov
@@ -59,15 +52,6 @@ sycl/include/CL/sycl/stream.hpp @againull
5952
sycl/source/detail/stream_impl.cpp @againull
6053
sycl/source/stream.cpp @againull
6154

62-
# Specialization constant
63-
sycl/include/CL/sycl/detail/sycl_fe_intrins.hpp @kbobrovs
64-
sycl/include/CL/sycl/experimental/spec_constant.hpp @kbobrovs
65-
sycl/source/detail/spec_constant_impl.hpp @kbobrovs
66-
67-
# Program manager
68-
sycl/source/detail/program_manager @kbobrovs
69-
sycl/source/detail/spec_constant_impl.cpp @kbobrovs
70-
7155
# FPGA extensions
7256
sycl/include/CL/sycl/intel/fpga_device_selector.hpp @MrSidims
7357
sycl/include/CL/sycl/intel/fpga_extensions.hpp @MrSidims
@@ -95,19 +79,19 @@ xpti/ @tovinkere @andykaylor
9579
xptifw/ @tovinkere @andykaylor
9680

9781
# DPC++ tools
98-
llvm/**/file-table-tform/ @kbobrovs @AlexeySachkov
82+
llvm/**/file-table-tform/ @mlychkov @AlexeySachkov @kbobrovs
9983
llvm/**/llvm-foreach/ @AlexeySachkov @Fznamznon
10084
llvm/**/llvm-no-spir-kernel/ @AGindinson @AlexeySachkov
101-
llvm/**/sycl-post-link/ @kbobrovs @AlexeySachkov
102-
llvm/include/llvm/Support/PropertySetIO.h @kbobrovs @AlexeySachkov
103-
llvm/lib/Support/PropertySetIO.cpp @kbobrovs @AlexeySachkov
104-
llvm/unittests/Support/PropertySetIOTest.cpp @kbobrovs @AlexeySachkov
105-
llvm/lib/Support/Base64.cpp @kbobrovs @AlexeySachkov
85+
llvm/**/sycl-post-link/ @mlychkov @AlexeySachkov @kbobrovs
86+
llvm/include/llvm/Support/PropertySetIO.h @mlychkov @AlexeySachkov @kbobrovs
87+
llvm/lib/Support/PropertySetIO.cpp @mlychkov @AlexeySachkov @kbobrovs
88+
llvm/unittests/Support/PropertySetIOTest.cpp @mlychkov @AlexeySachkov @kbobrovs
89+
llvm/lib/Support/Base64.cpp @mlychkov @AlexeySachkov @kbobrovs
10690

10791
# Clang offload tools
108-
clang/tools/clang-offload-bundler/ @kbobrovs @sndmitriev
109-
clang/tools/clang-offload-wrapper/ @sndmitriev @kbobrovs
110-
clang/tools/clang-offload-deps/ @sndmitriev
92+
clang/tools/clang-offload-bundler/ @mlychkov @sndmitriev @AlexeySachkov
93+
clang/tools/clang-offload-wrapper/ @mlychkov @sndmitriev @AlexeySachkov @kbobrovs
94+
clang/tools/clang-offload-deps/ @sndmitriev @mlychkov @AlexeySachkov
11195

11296
# Explicit SIMD
11397
SYCLLowerIR/ @kbobrovs @DenisBakhvalov
@@ -118,4 +102,3 @@ sycl/doc/extensions/ExplicitSIMD/ @kbobrovs
118102
# ITT annotations
119103
llvm/lib/Transforms/Instrumentation/SPIRITTAnnotations.cpp @MrSidims
120104
llvm/include/llvm/Transforms/Instrumentation/SPIRITTAnnotations.h @MrSidims
121-

buildbot/compile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ def do_compile(args):
3232
"--build", abs_obj_dir,
3333
"--",
3434
"deploy-sycl-toolchain",
35-
"deploy-opencl-aot",
3635
"-j", str(cpu_count)]
3736

37+
if args.verbose:
38+
cmake_cmd.append("--verbose")
39+
3840
print("[Cmake Command]: {}".format(" ".join(cmake_cmd)))
3941

4042
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
@@ -55,6 +57,7 @@ def main():
5557
parser.add_argument("-s", "--src-dir", metavar="SRC_DIR", help="source directory")
5658
parser.add_argument("-o", "--obj-dir", metavar="OBJ_DIR", help="build directory")
5759
parser.add_argument("-j", "--build-parallelism", metavar="BUILD_PARALLELISM", help="build parallelism")
60+
parser.add_argument("-v", "--verbose", action='store_true', help="verbose build output")
5861

5962
args = parser.parse_args()
6063

buildbot/configure.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ def do_configure(args):
1313
if not os.path.isdir(abs_obj_dir):
1414
os.makedirs(abs_obj_dir)
1515

16-
llvm_external_projects = 'sycl;llvm-spirv;opencl-aot;libdevice;xpti;xptifw'
16+
llvm_external_projects = 'sycl;llvm-spirv;opencl;libdevice;xpti;xptifw'
1717

1818
llvm_dir = os.path.join(abs_src_dir, "llvm")
1919
sycl_dir = os.path.join(abs_src_dir, "sycl")
2020
spirv_dir = os.path.join(abs_src_dir, "llvm-spirv")
2121
xpti_dir = os.path.join(abs_src_dir, "xpti")
2222
xptifw_dir = os.path.join(abs_src_dir, "xptifw")
2323
libdevice_dir = os.path.join(abs_src_dir, "libdevice")
24-
ocl_header_dir = os.path.join(abs_obj_dir, "OpenCL-Headers")
25-
icd_loader_lib = os.path.join(abs_obj_dir, "OpenCL-ICD-Loader", "build")
2624
llvm_targets_to_build = 'X86'
2725
llvm_enable_projects = 'clang;' + llvm_external_projects
2826
libclc_targets_to_build = ''
@@ -34,7 +32,6 @@ def do_configure(args):
3432
llvm_build_shared_libs = 'OFF'
3533

3634
sycl_enable_xpti_tracing = 'ON'
37-
icd_loader_lib = os.path.join(icd_loader_lib, "libOpenCL.so" if platform.system() == 'Linux' else "OpenCL.lib")
3835

3936
# replace not append, so ARM ^ X86
4037
if args.arm:
@@ -87,11 +84,6 @@ def do_configure(args):
8784
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing)
8885
]
8986

90-
if args.system_ocl:
91-
cmake_cmd.extend([
92-
"-DOpenCL_INCLUDE_DIR={}".format(ocl_header_dir),
93-
"-DOpenCL_LIBRARY={}".format(icd_loader_lib)])
94-
9587
if args.l0_headers and args.l0_loader:
9688
cmake_cmd.extend([
9789
"-DL0_INCLUDE_DIR={}".format(args.l0_headers),
@@ -123,8 +115,10 @@ def do_configure(args):
123115
except subprocess.CalledProcessError:
124116
cmake_cache = os.path.join(abs_obj_dir, "CMakeCache.txt")
125117
if os.path.isfile(cmake_cache):
126-
os.remove(cmake_cache)
127-
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
118+
print("There is CMakeCache.txt at " + cmake_cache +
119+
" ... you can try to remove it and rerun.")
120+
print("Configure failed!")
121+
return False
128122

129123
return True
130124

@@ -150,7 +144,6 @@ def main():
150144
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
151145
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
152146
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
153-
parser.add_argument("--system-ocl", action='store_true', help="use OpenCL deps from system (no download)")
154147
parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors")
155148
parser.add_argument("--shared-libs", action='store_true', help="Build shared libraries")
156149
parser.add_argument("--cmake-opt", action='append', help="Additional CMake option not configured via script parameters")

buildbot/dependency.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ ocl_cpu_rt_ver=2021.11.3.0.09
44
# https://github.com/intel/llvm/releases/download/2021-WW11/win-oclcpuexp-2021.11.3.0.09_rel.zip
55
ocl_cpu_rt_ver_win=2021.11.3.0.09
66
# Same GPU driver supports Level Zero and OpenCL
7-
# https://github.com/intel/compute-runtime/releases/tag/21.13.19438
8-
ocl_gpu_rt_ver=21.13.19438
7+
# https://github.com/intel/compute-runtime/releases/tag/21.16.19610
8+
ocl_gpu_rt_ver=21.16.19610
99
# Same GPU driver supports Level Zero and OpenCL
10-
# https://downloadmirror.intel.com/30266/a08/igfx_win10_100.9316.zip
11-
ocl_gpu_rt_ver_win=27.20.100.9316
10+
# https://downloadmirror.intel.com/30381/a08/igfx_win10_100.9466.zip
11+
ocl_gpu_rt_ver_win=27.20.100.9466
1212
intel_sycl_ver=build
1313

1414
# TBB binaries can be built from sources following instructions under
@@ -30,8 +30,8 @@ ocloc_ver_win=27.20.100.9168
3030
[DRIVER VERSIONS]
3131
cpu_driver_lin=2021.11.3.0.09
3232
cpu_driver_win=2021.11.3.0.09
33-
gpu_driver_lin=21.13.19438
34-
gpu_driver_win=27.20.100.9316
33+
gpu_driver_lin=21.16.19610
34+
gpu_driver_win=27.20.100.9466
3535
fpga_driver_lin=2021.11.3.0.09
3636
fpga_driver_win=2021.11.3.0.09
3737
# NVidia CUDA driver

clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "FoldInitTypeCheck.h"
2323
#include "ForwardDeclarationNamespaceCheck.h"
2424
#include "ForwardingReferenceOverloadCheck.h"
25+
#include "ImplicitWideningOfMultiplicationResultCheck.h"
2526
#include "InaccurateEraseCheck.h"
2627
#include "IncorrectRoundingsCheck.h"
2728
#include "InfiniteLoopCheck.h"
@@ -60,6 +61,7 @@
6061
#include "TooSmallLoopVariableCheck.h"
6162
#include "UndefinedMemoryManipulationCheck.h"
6263
#include "UndelegatedConstructorCheck.h"
64+
#include "UnhandledExceptionAtNewCheck.h"
6365
#include "UnhandledSelfAssignmentCheck.h"
6466
#include "UnusedRaiiCheck.h"
6567
#include "UnusedReturnValueCheck.h"
@@ -97,6 +99,8 @@ class BugproneModule : public ClangTidyModule {
9799
"bugprone-forward-declaration-namespace");
98100
CheckFactories.registerCheck<ForwardingReferenceOverloadCheck>(
99101
"bugprone-forwarding-reference-overload");
102+
CheckFactories.registerCheck<ImplicitWideningOfMultiplicationResultCheck>(
103+
"bugprone-implicit-widening-of-multiplication-result");
100104
CheckFactories.registerCheck<InaccurateEraseCheck>(
101105
"bugprone-inaccurate-erase");
102106
CheckFactories.registerCheck<IncorrectRoundingsCheck>(
@@ -175,6 +179,8 @@ class BugproneModule : public ClangTidyModule {
175179
"bugprone-undelegated-constructor");
176180
CheckFactories.registerCheck<UnhandledSelfAssignmentCheck>(
177181
"bugprone-unhandled-self-assignment");
182+
CheckFactories.registerCheck<UnhandledExceptionAtNewCheck>(
183+
"bugprone-unhandled-exception-at-new");
178184
CheckFactories.registerCheck<UnusedRaiiCheck>(
179185
"bugprone-unused-raii");
180186
CheckFactories.registerCheck<UnusedReturnValueCheck>(

clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ add_clang_library(clangTidyBugproneModule
1717
FoldInitTypeCheck.cpp
1818
ForwardDeclarationNamespaceCheck.cpp
1919
ForwardingReferenceOverloadCheck.cpp
20+
ImplicitWideningOfMultiplicationResultCheck.cpp
2021
InaccurateEraseCheck.cpp
2122
IncorrectRoundingsCheck.cpp
2223
InfiniteLoopCheck.cpp
@@ -55,6 +56,7 @@ add_clang_library(clangTidyBugproneModule
5556
TooSmallLoopVariableCheck.cpp
5657
UndefinedMemoryManipulationCheck.cpp
5758
UndelegatedConstructorCheck.cpp
59+
UnhandledExceptionAtNewCheck.cpp
5860
UnhandledSelfAssignmentCheck.cpp
5961
UnusedRaiiCheck.cpp
6062
UnusedReturnValueCheck.cpp

0 commit comments

Comments
 (0)