Skip to content

Commit ce06197

Browse files
committed
Apply review comment
1 parent 0486f79 commit ce06197

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

buildbot/configure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def do_configure(args):
2929
libclc_targets_to_build = ''
3030
libclc_gen_remangled_variants = 'OFF'
3131
sycl_build_pi_cuda = 'OFF'
32-
sycl_build_pi_esimd_cpu = 'OFF'
32+
sycl_build_pi_esimd_emulator = 'OFF'
3333
sycl_build_pi_hip = 'OFF'
3434
sycl_build_pi_hip_platform = 'AMD'
3535
sycl_werror = 'ON'
@@ -51,7 +51,7 @@ def do_configure(args):
5151
llvm_targets_to_build = 'ARM;AArch64'
5252

5353
if args.enable_esimd_cpu_emulation:
54-
sycl_build_pi_esimd_cpu = 'ON'
54+
sycl_build_pi_esimd_emulator = 'ON'
5555

5656
if args.cuda or args.hip:
5757
llvm_enable_projects += ';libclc'
@@ -123,7 +123,7 @@ def do_configure(args):
123123
"-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs),
124124
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing),
125125
"-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld),
126-
"-DSYCL_BUILD_PI_ESIMD_CPU={}".format(sycl_build_pi_esimd_cpu)
126+
"-DSYCL_BUILD_PI_ESIMD_EMULATOR={}".format(sycl_build_pi_esimd_emulator)
127127
]
128128

129129
if args.l0_headers and args.l0_loader:

sycl/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
include/CL/sycl/version.hpp
2+
include/CL/sycl/feature_test.hpp

sycl/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ set(sycl_plugin_dir ${CMAKE_CURRENT_SOURCE_DIR}/plugins)
100100
string(TIMESTAMP __SYCL_COMPILER_VERSION "%Y%m%d")
101101
set(version_header "${sycl_inc_dir}/CL/sycl/version.hpp")
102102
configure_file("${version_header}.in" "${version_header}")
103+
set(feature_header "${sycl_inc_dir}/CL/sycl/feature_test.hpp")
104+
configure_file("${feature_header}.in" "${feature_header}")
103105

104106
# Copy SYCL headers from sources to build directory
105107
add_custom_target(sycl-headers ALL
@@ -294,7 +296,7 @@ endif()
294296
# TODO : Remove 'if (NOT MSVC)' when CM_EMU supports Windows
295297
# environment
296298
if (NOT MSVC)
297-
if (SYCL_BUILD_PI_ESIMD_CPU)
299+
if (SYCL_BUILD_PI_ESIMD_EMULATOR)
298300
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS pi_esimd_cpu libcmrt-headers)
299301
if (MSVC)
300302
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS libcmrt-libs libcmrt-dlls)

sycl/include/CL/sycl/backend_types.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ enum class backend : char {
2626
ext_oneapi_level_zero,
2727
cuda = 3,
2828
all = 4,
29-
esimd_cpu = 5,
29+
ext_intel_esimd_emulator = 5,
30+
esimd_cpu = __SYCL2020_DEPRECATED("use 'ext_oneapi_esimd_emulator' instead") =
31+
ext_intel_esimd_emulator,
3032
hip = 6,
3133
};
3234

sycl/include/CL/sycl/feature_test.hpp renamed to sycl/include/CL/sycl/feature_test.hpp.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ namespace sycl {
2929
#define SYCL_EXT_INTEL_MEM_CHANNEL_PROPERTY 1
3030
#define SYCL_EXT_INTEL_USM_ADDRESS_SPACES 1
3131
#define SYCL_EXT_ONEAPI_BACKEND_LEVEL_ZERO 1
32+
#if ${SYCL_BUILD_PI_CUDA}
3233
#define SYCL_EXT_ONEAPI_BACKEND_CUDA 1
33-
#define SYCL_EXT_INTEL_BACKEND_ESIMD_CPU 1
34+
#endif
35+
#if ${SYCL_BUILD_PI_ESIMD_EMULATOR}
36+
#define SYCL_EXT_INTEL_BACKEND_ESIMD_EMULATOR 1
37+
#endif
38+
#if ${SYCL_BUILD_PI_HIP}
3439
#define SYCL_EXT_ONEAPI_BACKEND_HIP 1
40+
#endif
3541

3642
} // namespace sycl
3743
} // __SYCL_INLINE_NAMESPACE(cl)

sycl/plugins/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ add_subdirectory(level_zero)
1818
# TODO : Remove 'if (NOT MSVC)' when CM_EMU supports Windows
1919
# environment
2020
if (NOT MSVC)
21-
if (SYCL_BUILD_PI_ESIMD_CPU)
21+
if (SYCL_BUILD_PI_ESIMD_EMULATOR)
2222
add_subdirectory(esimd_cpu)
2323
endif()
2424
endif()

0 commit comments

Comments
 (0)