Skip to content

Commit e7befdf

Browse files
Testing is_in_order property
Also testing support for property="in_order" in constructor
1 parent 7449f4d commit e7befdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_sycl_queue.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ def test_valid_filter_selectors(valid_filter, check):
321321
try:
322322
q = dpctl.SyclQueue(valid_filter)
323323
device = q.get_sycl_device()
324+
assert q.is_in_order is False
325+
q2 = dpctl.SyclQueue(valid_filter, property="in_order")
326+
# assert device == q2.get_sycl_device()
327+
assert q2.is_in_order is True
324328
except dpctl.SyclQueueCreationError:
325329
pytest.skip("Failed to create device with supported filter")
326330
check(device)

0 commit comments

Comments
 (0)