@@ -93,7 +93,7 @@ backend DPCTL_DPCTLBackendTypeToSyclBackend(DPCTLSyclBackendType BeTy)
9393 case DPCTLSyclBackendType::DPCTL_HOST:
9494 return backend::host;
9595 case DPCTLSyclBackendType::DPCTL_LEVEL_ZERO:
96- return backend::level_zero ;
96+ return backend::ext_oneapi_level_zero ;
9797 case DPCTLSyclBackendType::DPCTL_OPENCL:
9898 return backend::opencl;
9999 case DPCTLSyclBackendType::DPCTL_ALL_BACKENDS:
@@ -110,7 +110,7 @@ DPCTLSyclBackendType DPCTL_SyclBackendToDPCTLBackendType(backend B)
110110 return DPCTLSyclBackendType::DPCTL_CUDA;
111111 case backend::host:
112112 return DPCTLSyclBackendType::DPCTL_HOST;
113- case backend::level_zero :
113+ case backend::ext_oneapi_level_zero :
114114 return DPCTLSyclBackendType::DPCTL_LEVEL_ZERO;
115115 case backend::opencl:
116116 return DPCTLSyclBackendType::DPCTL_OPENCL;
@@ -221,8 +221,8 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
221221 case aspect::usm_restricted_shared_allocations:
222222 ss << " usm_restricted_shared_allocations" ;
223223 break ;
224- case aspect::usm_system_allocator :
225- ss << " usm_system_allocator " ;
224+ case aspect::usm_system_allocations :
225+ ss << " usm_system_allocations " ;
226226 break ;
227227 default :
228228 throw std::runtime_error (" Unsupported aspect type" );
@@ -287,8 +287,8 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
287287 else if (aspectTyStr == " usm_restricted_shared_allocations" ) {
288288 aspectTy = aspect::usm_restricted_shared_allocations;
289289 }
290- else if (aspectTyStr == " usm_system_allocator " ) {
291- aspectTy = aspect::usm_system_allocator ;
290+ else if (aspectTyStr == " usm_system_allocations " ) {
291+ aspectTy = aspect::usm_system_allocations ;
292292 }
293293 else {
294294 // \todo handle the error
@@ -334,8 +334,8 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
334334 return aspect::usm_shared_allocations;
335335 case DPCTLSyclAspectType::usm_restricted_shared_allocations:
336336 return aspect::usm_restricted_shared_allocations;
337- case DPCTLSyclAspectType::usm_system_allocator :
338- return aspect::usm_system_allocator ;
337+ case DPCTLSyclAspectType::usm_system_allocations :
338+ return aspect::usm_system_allocations ;
339339 default :
340340 throw std::runtime_error (" Unsupported aspect type" );
341341 }
@@ -378,8 +378,8 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
378378 return DPCTLSyclAspectType::usm_shared_allocations;
379379 case aspect::usm_restricted_shared_allocations:
380380 return DPCTLSyclAspectType::usm_restricted_shared_allocations;
381- case aspect::usm_system_allocator :
382- return DPCTLSyclAspectType::usm_system_allocator ;
381+ case aspect::usm_system_allocations :
382+ return DPCTLSyclAspectType::usm_system_allocations ;
383383 default :
384384 throw std::runtime_error (" Unsupported aspect type" );
385385 }
0 commit comments