File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
libsyclinterface/helper/source Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
177
177
{
178
178
std::stringstream ss;
179
179
switch (aspectTy) {
180
+ #if __SYCL_COMPILER_VERSION < __SYCL_COMPILER_2023_SWITCHOVER
180
181
case aspect::host:
181
182
ss << " host" ;
182
183
break ;
184
+ #endif
183
185
case aspect::cpu:
184
186
ss << " cpu" ;
185
187
break ;
@@ -249,9 +251,13 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
249
251
aspect DPCTL_StrToAspectType (const std::string &aspectTyStr)
250
252
{
251
253
aspect aspectTy;
252
- if (aspectTyStr == " host" ) {
254
+ if (false ) {
255
+ }
256
+ #if __SYCL_COMPILER_VERSION < __SYCL_COMPILER_2023_SWITCHOVER
257
+ else if (aspectTyStr == " host" ) {
253
258
aspectTy = aspect::host;
254
259
}
260
+ #endif
255
261
else if (aspectTyStr == " cpu" ) {
256
262
aspectTy = aspect::cpu;
257
263
}
@@ -319,8 +325,10 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
319
325
aspect DPCTL_DPCTLAspectTypeToSyclAspect (DPCTLSyclAspectType AspectTy)
320
326
{
321
327
switch (AspectTy) {
328
+ #if __SYCL_COMPILER_VERSION < __SYCL_COMPILER_2023_SWITCHOVER
322
329
case DPCTLSyclAspectType::host:
323
330
return aspect::host;
331
+ #endif
324
332
case DPCTLSyclAspectType::cpu:
325
333
return aspect::cpu;
326
334
case DPCTLSyclAspectType::gpu:
@@ -367,8 +375,10 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
367
375
DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType (aspect Aspect)
368
376
{
369
377
switch (Aspect) {
378
+ #if __SYCL_COMPILER_VERSION < __SYCL_COMPILER_2023_SWITCHOVER
370
379
case aspect::host:
371
380
return DPCTLSyclAspectType::host;
381
+ #endif
372
382
case aspect::cpu:
373
383
return DPCTLSyclAspectType::cpu;
374
384
case aspect::gpu:
You can’t perform that action at this time.
0 commit comments