@@ -191,11 +191,8 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
191191 case aspect::fp64:
192192 ss << " fp64" ;
193193 break ;
194- case aspect::int64_base_atomics:
195- ss << " int64_base_atomics" ;
196- break ;
197- case aspect::int64_extended_atomics:
198- ss << " int64_extended_atomics" ;
194+ case aspect::atomic64:
195+ ss << " atomic64" ;
199196 break ;
200197 case aspect::image:
201198 ss << " image" ;
@@ -224,6 +221,15 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
224221 case aspect::usm_system_allocations:
225222 ss << " usm_system_allocations" ;
226223 break ;
224+ case aspect::usm_atomic_host_allocations:
225+ ss << " usm_atomic_host_allocations" ;
226+ break ;
227+ case aspect::usm_atomic_shared_allocations:
228+ ss << " usm_atomic_shared_allocations" ;
229+ break ;
230+ case aspect::host_debuggable:
231+ ss << " host_debuggable" ;
232+ break ;
227233 default :
228234 throw std::runtime_error (" Unsupported aspect type" );
229235 }
@@ -257,11 +263,8 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
257263 else if (aspectTyStr == " fp64" ) {
258264 aspectTy = aspect::fp64;
259265 }
260- else if (aspectTyStr == " int64_base_atomics" ) {
261- aspectTy = aspect::int64_base_atomics;
262- }
263- else if (aspectTyStr == " int64_extended_atomics" ) {
264- aspectTy = aspect::int64_extended_atomics;
266+ else if (aspectTyStr == " atomic64" ) {
267+ aspectTy = aspect::atomic64;
265268 }
266269 else if (aspectTyStr == " image" ) {
267270 aspectTy = aspect::image;
@@ -290,6 +293,15 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
290293 else if (aspectTyStr == " usm_system_allocations" ) {
291294 aspectTy = aspect::usm_system_allocations;
292295 }
296+ else if (aspectTyStr == " usm_atomic_host_allocations" ) {
297+ aspectTy = aspect::usm_atomic_host_allocations;
298+ }
299+ else if (aspectTyStr == " usm_atomic_shared_allocations" ) {
300+ aspectTy = aspect::usm_atomic_shared_allocations;
301+ }
302+ else if (aspectTyStr == " host_debuggable" ) {
303+ aspectTy = aspect::host_debuggable;
304+ }
293305 else {
294306 // \todo handle the error
295307 throw std::runtime_error (" Unsupported aspect type" );
@@ -314,10 +326,8 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
314326 return aspect::fp16;
315327 case DPCTLSyclAspectType::fp64:
316328 return aspect::fp64;
317- case DPCTLSyclAspectType::int64_base_atomics:
318- return aspect::int64_base_atomics;
319- case DPCTLSyclAspectType::int64_extended_atomics:
320- return aspect::int64_extended_atomics;
329+ case DPCTLSyclAspectType::atomic64:
330+ return aspect::atomic64;
321331 case DPCTLSyclAspectType::image:
322332 return aspect::image;
323333 case DPCTLSyclAspectType::online_compiler:
@@ -336,6 +346,12 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
336346 return aspect::usm_restricted_shared_allocations;
337347 case DPCTLSyclAspectType::usm_system_allocations:
338348 return aspect::usm_system_allocations;
349+ case DPCTLSyclAspectType::usm_atomic_host_allocations:
350+ return aspect::usm_atomic_host_allocations;
351+ case DPCTLSyclAspectType::usm_atomic_shared_allocations:
352+ return aspect::usm_atomic_shared_allocations;
353+ case DPCTLSyclAspectType::host_debuggable:
354+ return aspect::host_debuggable;
339355 default :
340356 throw std::runtime_error (" Unsupported aspect type" );
341357 }
@@ -358,10 +374,8 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
358374 return DPCTLSyclAspectType::fp16;
359375 case aspect::fp64:
360376 return DPCTLSyclAspectType::fp64;
361- case aspect::int64_base_atomics:
362- return DPCTLSyclAspectType::int64_base_atomics;
363- case aspect::int64_extended_atomics:
364- return DPCTLSyclAspectType::int64_extended_atomics;
377+ case aspect::atomic64:
378+ return DPCTLSyclAspectType::atomic64;
365379 case aspect::image:
366380 return DPCTLSyclAspectType::image;
367381 case aspect::online_compiler:
@@ -380,6 +394,12 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
380394 return DPCTLSyclAspectType::usm_restricted_shared_allocations;
381395 case aspect::usm_system_allocations:
382396 return DPCTLSyclAspectType::usm_system_allocations;
397+ case aspect::usm_atomic_host_allocations:
398+ return DPCTLSyclAspectType::usm_atomic_host_allocations;
399+ case aspect::usm_atomic_shared_allocations:
400+ return DPCTLSyclAspectType::usm_atomic_shared_allocations;
401+ case aspect::host_debuggable:
402+ return DPCTLSyclAspectType::host_debuggable;
383403 default :
384404 throw std::runtime_error (" Unsupported aspect type" );
385405 }
0 commit comments