From f3a13ce7973222baa9ce1afd888ce62eb1c076eb Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 3 Aug 2022 16:37:52 -0500 Subject: [PATCH] Do not test on host device for now. Also make sure to skip rejected devices --- tests/test_sycl_queue.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_sycl_queue.py b/tests/test_sycl_queue.py index 3c948723dd28..ff422624cd59 100644 --- a/tests/test_sycl_queue.py +++ b/tests/test_sycl_queue.py @@ -17,10 +17,12 @@ "cpu", ] -available_devices = dpctl.get_devices() +available_devices = [d for d in dpctl.get_devices() if not d.has_aspect_host] valid_devices = [] for device in available_devices: + if d.default_selector_score < 0: + pass if device.backend.name not in list_of_backend_str: pass elif device.device_type.name not in list_of_device_type_str: