File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
libsyclinterface/helper/source Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,12 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
218
218
case aspect::emulated:
219
219
ss << " emulated" ;
220
220
break ;
221
+ case aspect::ext_oneapi_is_component:
222
+ ss << " is_component" ;
223
+ break ;
224
+ case aspect::ext_oneapi_is_composite:
225
+ ss << " is_composite" ;
226
+ break ;
221
227
default :
222
228
throw std::runtime_error (" Unsupported aspect type" );
223
229
}
@@ -287,6 +293,12 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
287
293
else if (aspectTyStr == " emulated" ) {
288
294
aspectTy = aspect::emulated;
289
295
}
296
+ else if (aspectTyStr == " is_component" ) {
297
+ aspectTy = aspect::ext_oneapi_is_component;
298
+ }
299
+ else if (aspectTyStr == " is_composite" ) {
300
+ aspectTy = aspect::ext_oneapi_is_composite;
301
+ }
290
302
else {
291
303
// \todo handle the error
292
304
throw std::runtime_error (" Unsupported aspect type" );
You can’t perform that action at this time.
0 commit comments