File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -770,6 +770,20 @@ cdef class SyclDevice(_SyclDevice):
770
770
cdef _aspect_type AT = _aspect_type._host_debuggable
771
771
return DPCTLDevice_HasAspect(self ._device_ref, AT)
772
772
773
+ @property
774
+ def has_aspect_emulated (self ):
775
+ """ Returns ``True`` if this device is somehow emulated, ``False``
776
+ otherwise. A device with this aspect is not intended for performance,
777
+ and instead will generally have another purpose such as emulation
778
+ or profiling.
779
+
780
+ Returns:
781
+ bool:
782
+ Indicates if device is somehow emulated.
783
+ """
784
+ cdef _aspect_type AT = _aspect_type._emulated
785
+ return DPCTLDevice_HasAspect(self ._device_ref, AT)
786
+
773
787
@property
774
788
def image_2d_max_width (self ):
775
789
""" Returns the maximum width of a 2D image or 1D image in pixels.
You can’t perform that action at this time.
0 commit comments