Skip to content

Commit ebc3864

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents 9f67174 + 30acaff commit ebc3864

Some content is hidden

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

45 files changed

+156
-127
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ endif()
313313
# environment
314314
if (NOT MSVC)
315315
if (SYCL_BUILD_PI_ESIMD_EMULATOR)
316-
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS pi_esimd_cpu libcmrt-headers)
316+
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS pi_esimd_emulator libcmrt-headers)
317317
if (MSVC)
318318
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS libcmrt-libs libcmrt-dlls)
319319
else()

sycl/include/CL/__spirv/spirv_ops.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==---------- spirv_ops.hpp --- SPIRV operations -------------------------==//
1+
//==----------- spirv_ops.hpp --- SPIRV operations -------------------------==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/__spirv/spirv_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===----------- spirv_types.hpp --- SPIRV types -------------------------===//
1+
//===------------ spirv_types.hpp --- SPIRV types -------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/__spirv/spirv_vars.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==---------- spirv_vars.hpp --- SPIRV variables -------------------------==//
1+
//==----------- spirv_vars.hpp --- SPIRV variables -------------------------==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/sycl/aspects.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==-------------- aspects.hpp - SYCL Aspect Enums ------------*- C++ -*---==//
1+
//==--------------- aspects.hpp - SYCL Aspect Enums ------------*- C++ -*---==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/sycl/backend/cuda.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ template <> struct interop<backend::cuda, queue> { using type = CUstream; };
4141

4242
template <> struct interop<backend::cuda, event> { using type = CUevent; };
4343

44+
#ifdef __SYCL_INTERNAL_API
4445
template <> struct interop<backend::cuda, program> { using type = CUmodule; };
46+
#endif
4547

4648
template <typename DataT, int Dimensions, access::mode AccessMode>
4749
struct interop<backend::cuda,

sycl/include/CL/sycl/backend/opencl.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ template <> struct interop<backend::opencl, queue> {
3737
using type = cl_command_queue;
3838
};
3939

40+
#ifdef __SYCL_INTERNAL_API
4041
template <> struct interop<backend::opencl, program> {
4142
using type = cl_program;
4243
};
44+
#endif
4345

4446
template <> struct interop<backend::opencl, event> { using type = cl_event; };
4547

@@ -110,8 +112,10 @@ namespace opencl {
110112
__SYCL_EXPORT platform make_platform(pi_native_handle NativeHandle);
111113
__SYCL_EXPORT device make_device(pi_native_handle NativeHandle);
112114
__SYCL_EXPORT context make_context(pi_native_handle NativeHandle);
115+
#ifdef __SYCL_INTERNAL_API
113116
__SYCL_EXPORT program make_program(const context &Context,
114117
pi_native_handle NativeHandle);
118+
#endif
115119
__SYCL_EXPORT queue make_queue(const context &Context,
116120
pi_native_handle InteropHandle);
117121

@@ -137,12 +141,14 @@ T make(typename interop<backend::opencl, T>::type Interop) {
137141
}
138142

139143
// Construction of SYCL program.
144+
#ifdef __SYCL_INTERNAL_API
140145
template <typename T, typename detail::enable_if_t<
141146
std::is_same<T, program>::value> * = nullptr>
142147
T make(const context &Context,
143148
typename interop<backend::opencl, T>::type Interop) {
144149
return make_program(Context, detail::pi::cast<pi_native_handle>(Interop));
145150
}
151+
#endif
146152

147153
// Construction of SYCL queue.
148154
template <typename T, typename detail::enable_if_t<

sycl/include/CL/sycl/detail/hip_definitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==------------ hip_definitions.hpp - SYCL HIP backend -------------------==//
1+
//==------------- hip_definitions.hpp - SYCL HIP backend -------------------==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/sycl/detail/item_base.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==---------- item_base.hpp --- SYCL iteration ItemBase ------------------==//
1+
//==----------- item_base.hpp --- SYCL iteration ItemBase ------------------==//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/CL/sycl/detail/pi.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ bool trace(TraceLevel level);
6565
#define __SYCL_OPENCL_PLUGIN_NAME "pi_opencl.dll"
6666
#define __SYCL_LEVEL_ZERO_PLUGIN_NAME "pi_level_zero.dll"
6767
#define __SYCL_CUDA_PLUGIN_NAME "pi_cuda.dll"
68-
#define __SYCL_ESIMD_CPU_PLUGIN_NAME "pi_esimd_cpu.dll"
68+
#define __SYCL_ESIMD_EMULATOR_PLUGIN_NAME "pi_esimd_emulator.dll"
6969
#define __SYCL_HIP_PLUGIN_NAME "libpi_hip.dll"
7070
#else
7171
#define __SYCL_OPENCL_PLUGIN_NAME "libpi_opencl.so"
7272
#define __SYCL_LEVEL_ZERO_PLUGIN_NAME "libpi_level_zero.so"
7373
#define __SYCL_CUDA_PLUGIN_NAME "libpi_cuda.so"
74-
#define __SYCL_ESIMD_CPU_PLUGIN_NAME "libpi_esimd_cpu.so"
74+
#define __SYCL_ESIMD_EMULATOR_PLUGIN_NAME "libpi_esimd_emulator.so"
7575
#define __SYCL_HIP_PLUGIN_NAME "libpi_hip.so"
7676
#endif
7777

0 commit comments

Comments
 (0)