Skip to content

Commit 80cdead

Browse files
committed
Apply review comments
1 parent 66662c6 commit 80cdead

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

sycl/include/CL/sycl/backend_types.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum class backend : char {
2727
cuda = 3,
2828
all = 4,
2929
ext_intel_esimd_emulator = 5,
30-
esimd_cpu = __SYCL2020_DEPRECATED("use 'ext_oneapi_esimd_emulator' instead") =
30+
esimd_cpu __SYCL2020_DEPRECATED("use 'ext_oneapi_esimd_emulator' instead") =
3131
ext_intel_esimd_emulator,
3232
hip = 6,
3333
};
@@ -57,8 +57,8 @@ inline std::ostream &operator<<(std::ostream &Out, backend be) {
5757
case backend::cuda:
5858
Out << "cuda";
5959
break;
60-
case backend::esimd_cpu:
61-
Out << "esimd_cpu";
60+
case backend::ext_intel_esimd_emulator:
61+
Out << "ext_intel_esimd_emulator";
6262
break;
6363
case backend::hip:
6464
Out << "hip";

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ 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}
32+
#cmakedefine01 SYCL_BUILD_PI_CUDA
33+
#if SYCL_BUILD_PI_CUDA
3334
#define SYCL_EXT_ONEAPI_BACKEND_CUDA 1
3435
#endif
35-
#if ${SYCL_BUILD_PI_ESIMD_EMULATOR}
36+
#cmakedefine01 SYCL_BUILD_PI_ESIMD_EMULATOR
37+
#if SYCL_BUILD_PI_ESIMD_EMULATOR
3638
#define SYCL_EXT_INTEL_BACKEND_ESIMD_EMULATOR 1
3739
#endif
38-
#if ${SYCL_BUILD_PI_HIP}
40+
#cmakedefine01 SYCL_BUILD_PI_HIP
41+
#if SYCL_BUILD_PI_HIP
3942
#define SYCL_EXT_ONEAPI_BACKEND_HIP 1
4043
#endif
4144

sycl/include/sycl/ext/intel/experimental/esimd/emu/detail/esimdcpu_device_interface.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ ESIMDDeviceInterface *getESIMDDeviceInterface() {
7575
// tight loop)
7676
void *PIOpaqueData = nullptr;
7777

78-
PIOpaqueData = getPluginOpaqueData<cl::sycl::backend::esimd_cpu>(nullptr);
78+
PIOpaqueData =
79+
getPluginOpaqueData<cl::sycl::backend::ext_oneapi_esimd_emulator>(
80+
nullptr);
7981

8082
ESIMDEmuPluginOpaqueData *OpaqueData =
8183
reinterpret_cast<ESIMDEmuPluginOpaqueData *>(PIOpaqueData);

sycl/source/detail/pi.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void *getPluginOpaqueData(void *OpaqueDataParam) {
7474
}
7575

7676
template __SYCL_EXPORT void *
77-
getPluginOpaqueData<cl::sycl::backend::esimd_cpu>(void *);
77+
getPluginOpaqueData<cl::sycl::backend::ext_intel_esimd_emulator>(void *);
7878

7979
namespace pi {
8080

@@ -504,7 +504,8 @@ template <backend BE> const plugin &getPlugin() {
504504

505505
template __SYCL_EXPORT const plugin &getPlugin<backend::opencl>();
506506
template __SYCL_EXPORT const plugin &getPlugin<backend::level_zero>();
507-
template __SYCL_EXPORT const plugin &getPlugin<backend::esimd_cpu>();
507+
template __SYCL_EXPORT const plugin &
508+
getPlugin<backend::ext_intel_esimd_emulator>();
508509

509510
// Report error and no return (keeps compiler from printing warnings).
510511
// TODO: Probably change that to throw a catchable exception,

0 commit comments

Comments
 (0)