Skip to content

Commit 5a8fa2e

Browse files
Add check for has_aspect_emulated
1 parent eebe2cc commit 5a8fa2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dpctl/tests/_device_attributes_checks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ def check_has_aspect_host_debuggable(device):
245245
pytest.fail("has_aspect_host_debuggable call failed")
246246

247247

248+
def check_has_aspect_emulated(device):
249+
try:
250+
device.has_aspect_emulated
251+
except Exception:
252+
pytest.fail("has_aspect_emulated call failed")
253+
254+
248255
def check_is_accelerator(device):
249256
try:
250257
device.is_accelerator
@@ -698,6 +705,7 @@ def check_global_mem_cache_line_size(device):
698705
check_has_aspect_usm_atomic_host_allocations,
699706
check_has_aspect_usm_atomic_shared_allocations,
700707
check_has_aspect_host_debuggable,
708+
check_has_aspect_emulated,
701709
check_max_read_image_args,
702710
check_max_write_image_args,
703711
check_image_2d_max_width,

0 commit comments

Comments
 (0)