Skip to content

Commit 98d0529

Browse files
Recognize sycl::aspect::emulated
1 parent 183bfd7 commit 98d0529

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libsyclinterface/helper/source/dpctl_utils_helper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
326326
return aspect::usm_atomic_shared_allocations;
327327
case DPCTLSyclAspectType::host_debuggable:
328328
return aspect::host_debuggable;
329+
case DPCTLSyclAspectType::emulated:
330+
return aspect::emulated;
329331
default:
330332
throw std::runtime_error("Unsupported aspect type");
331333
}
@@ -370,6 +372,8 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
370372
return DPCTLSyclAspectType::usm_atomic_shared_allocations;
371373
case aspect::host_debuggable:
372374
return DPCTLSyclAspectType::host_debuggable;
375+
case aspect::emulated:
376+
return DPCTLSyclAspectType::emulated;
373377
default:
374378
throw std::runtime_error("Unsupported aspect type");
375379
}

0 commit comments

Comments
 (0)