Skip to content

Commit 47e71eb

Browse files
Merge branch 'sycl' into private/dongkyun/esimd_cpu_emulation_new_header_files
2 parents 8663a65 + 79c460c commit 47e71eb

File tree

13,861 files changed

+2076934
-328387
lines changed

Some content is hidden

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

13,861 files changed

+2076934
-328387
lines changed

.github/CODEOWNERS

Lines changed: 23 additions & 34 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,27 +79,32 @@ xpti/ @tovinkere @andykaylor
9579
xptifw/ @tovinkere @andykaylor
9680

9781
# DPC++ tools
98-
llvm/**/file-table-tform/ @kbobrovs @AlexeySachkov
82+
llvm/**/append-file/ @mdtoguchi @AGindinson
83+
llvm/**/file-table-tform/ @mlychkov @AlexeySachkov @kbobrovs
9984
llvm/**/llvm-foreach/ @AlexeySachkov @Fznamznon
10085
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
86+
llvm/**/sycl-post-link/ @mlychkov @AlexeySachkov @kbobrovs
87+
llvm/include/llvm/Support/PropertySetIO.h @mlychkov @AlexeySachkov @kbobrovs
88+
llvm/lib/Support/PropertySetIO.cpp @mlychkov @AlexeySachkov @kbobrovs
89+
llvm/unittests/Support/PropertySetIOTest.cpp @mlychkov @AlexeySachkov @kbobrovs
90+
llvm/include/llvm/Support/SimpleTable.h @mlychkov @AlexeySachkov @kbobrovs
91+
llvm/lib/Support/SimpleTable.cpp @mlychkov @AlexeySachkov @kbobrovs
92+
llvm/unittests/Support/SimpleTableTest.cpp @mlychkov @AlexeySachkov @kbobrovs
93+
llvm/lib/Support/Base64.cpp @mlychkov @AlexeySachkov @kbobrovs
10694

10795
# 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
96+
clang/tools/clang-offload-bundler/ @mlychkov @sndmitriev @AlexeySachkov
97+
clang/tools/clang-offload-wrapper/ @mlychkov @sndmitriev @AlexeySachkov @kbobrovs
98+
clang/tools/clang-offload-deps/ @sndmitriev @mlychkov @AlexeySachkov
99+
clang/tools/clang-offload-extract/ @sndmitriev @mlychkov @AlexeySachkov
111100

112101
# Explicit SIMD
113102
SYCLLowerIR/ @kbobrovs @DenisBakhvalov
114103
esimd/ @kbobrovs @DenisBakhvalov
115-
sycl/include/CL/sycl/INTEL/esimd.hpp @kbobrovs @DenisBakhvalov
104+
sycl/include/sycl/ext/intel/experimental/esimd.hpp @kbobrovs @DenisBakhvalov
116105
sycl/doc/extensions/ExplicitSIMD/ @kbobrovs
117106

118107
# ITT annotations
119-
llvm/lib/Transforms/Instrumentation/SPIRITTAnnotations.cpp @MrSidims
120-
llvm/include/llvm/Transforms/Instrumentation/SPIRITTAnnotations.h @MrSidims
121-
108+
llvm/lib/Transforms/Instrumentation/SPIRITTAnnotations.cpp @MrSidims @vzakhari
109+
llvm/include/llvm/Transforms/Instrumentation/SPIRITTAnnotations.h @MrSidims @vzakhari
110+
llvm/test/Transforms/SPIRITTAnnotations/* @MrSidims @vzakhari

.github/workflows/clang-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Get clang-format first
13-
run: sudo apt-get install -yqq clang-format-9
13+
run: sudo apt-get install -yqq clang-format
1414

1515
- uses: actions/checkout@v2
1616
with:
1717
fetch-depth: 2
1818

1919
- name: Run clang-format for the patch
2020
run: |
21-
git diff --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} --name-only -- | grep -v "/test/" | xargs git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format-9 > ./clang-format.patch
21+
git diff --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} --name-only -- | grep -v "/test/" | xargs git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format > ./clang-format.patch
2222
2323
# Add patch with formatting fixes to CI job artifacts
2424
- uses: actions/upload-artifact@v1

.github/workflows/linux_post_commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
check:
99
runs-on: ubuntu-18.04
10+
if: github.repository == 'intel/llvm'
1011
strategy:
1112
fail-fast: false
1213
matrix:

.github/workflows/sync-main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: automatic sync main branch from llvm-project to llvm
22

33
on:
44
schedule:
5-
- cron: '*/10 * * * *'
5+
- cron: '0 */1 * * *'
66
jobs:
77
sync:
88
runs-on: ubuntu-latest
9+
if: github.repository == 'intel/llvm'
910
steps:
1011
- uses: actions/checkout@v2
1112
with:

SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Reporting LLVM Security Issues
2+
3+
To report security issues in LLVM, please follow the steps outlined on the
4+
[LLVM Security Group](https://llvm.org/docs/Security.html#how-to-report-a-security-issue)
5+
page.

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: 13 additions & 14 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 = ''
@@ -33,9 +31,9 @@ def do_configure(args):
3331
llvm_enable_doxygen = 'OFF'
3432
llvm_enable_sphinx = 'OFF'
3533
llvm_build_shared_libs = 'OFF'
34+
llvm_enable_lld = 'OFF'
3635

3736
sycl_enable_xpti_tracing = 'ON'
38-
icd_loader_lib = os.path.join(icd_loader_lib, "libOpenCL.so" if platform.system() == 'Linux' else "OpenCL.lib")
3937

4038
# replace not append, so ARM ^ X86
4139
if args.arm:
@@ -63,6 +61,9 @@ def do_configure(args):
6361
if args.shared_libs:
6462
llvm_build_shared_libs = 'ON'
6563

64+
if args.use_lld:
65+
llvm_enable_lld = 'ON'
66+
6667
install_dir = os.path.join(abs_obj_dir, "install")
6768

6869
cmake_cmd = [
@@ -88,15 +89,11 @@ def do_configure(args):
8889
"-DLLVM_ENABLE_DOXYGEN={}".format(llvm_enable_doxygen),
8990
"-DLLVM_ENABLE_SPHINX={}".format(llvm_enable_sphinx),
9091
"-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs),
91-
"-DSYCL_BUILD_PI_ESIMD_CPU={}".format(sycl_build_pi_esimd_cpu),
92-
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing)
92+
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing),
93+
"-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld),
94+
"-DSYCL_BUILD_PI_ESIMD_CPU={}".format(sycl_build_pi_esimd_cpu)
9395
]
9496

95-
if args.system_ocl:
96-
cmake_cmd.extend([
97-
"-DOpenCL_INCLUDE_DIR={}".format(ocl_header_dir),
98-
"-DOpenCL_LIBRARY={}".format(icd_loader_lib)])
99-
10097
if args.l0_headers and args.l0_loader:
10198
cmake_cmd.extend([
10299
"-DL0_INCLUDE_DIR={}".format(args.l0_headers),
@@ -128,8 +125,10 @@ def do_configure(args):
128125
except subprocess.CalledProcessError:
129126
cmake_cache = os.path.join(abs_obj_dir, "CMakeCache.txt")
130127
if os.path.isfile(cmake_cache):
131-
os.remove(cmake_cache)
132-
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
128+
print("There is CMakeCache.txt at " + cmake_cache +
129+
" ... you can try to remove it and rerun.")
130+
print("Configure failed!")
131+
return False
133132

134133
return True
135134

@@ -156,14 +155,14 @@ def main():
156155
parser.add_argument("--disable-esimd-cpu", action='store_true', help="build without ESIMD_CPU support")
157156
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
158157
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
159-
parser.add_argument("--system-ocl", action='store_true', help="use OpenCL deps from system (no download)")
160158
parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors")
161159
parser.add_argument("--shared-libs", action='store_true', help="Build shared libraries")
162160
parser.add_argument("--cmake-opt", action='append', help="Additional CMake option not configured via script parameters")
163161
parser.add_argument("--cmake-gen", default="Ninja", help="CMake generator")
164162
parser.add_argument("--use-libcxx", action="store_true", help="build sycl runtime with libcxx")
165163
parser.add_argument("--libcxx-include", metavar="LIBCXX_INCLUDE_PATH", help="libcxx include path")
166164
parser.add_argument("--libcxx-library", metavar="LIBCXX_LIBRARY_PATH", help="libcxx library path")
165+
parser.add_argument("--use-lld", action="store_true", help="Use LLD linker for build")
167166
args = parser.parse_args()
168167

169168
print("args:{}".format(args))

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.09.19150
8-
ocl_gpu_rt_ver=21.09.19150
7+
# https://github.com/intel/compute-runtime/releases/tag/21.19.19792
8+
ocl_gpu_rt_ver=21.19.19792
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.09.19150
34-
gpu_driver_win=27.20.100.9316
33+
gpu_driver_lin=21.19.19792
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-move/tool/ClangMove.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ namespace {
3030
std::error_code CreateNewFile(const llvm::Twine &path) {
3131
int fd = 0;
3232
if (std::error_code ec = llvm::sys::fs::openFileForWrite(
33-
path, fd, llvm::sys::fs::CD_CreateAlways, llvm::sys::fs::OF_Text))
33+
path, fd, llvm::sys::fs::CD_CreateAlways,
34+
llvm::sys::fs::OF_TextWithCRLF))
3435
return ec;
3536

3637
return llvm::sys::Process::SafelyCloseFileDescriptor(fd);

clang-tools-extra/clang-query/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ clang_target_link_libraries(clangQuery
1919
clangBasic
2020
clangDynamicASTMatchers
2121
clangFrontend
22+
clangTooling
2223
clangSerialization
2324
)
2425

0 commit comments

Comments
 (0)