-
Notifications
You must be signed in to change notification settings - Fork 30
Better handle no devices systems #1189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Setting environment variable `ONEAPI_DEVICE_SELECTOR=cpu` effectively disables all devices. This PR wraps some calls to DPC++ RT routines in try/catch to properly handle exceptions that would arise from a call should the said environment variable be set.
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1189/index.html |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_26 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_27 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_28 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_32 ran successfully. |
ed2d54c
to
59c3027
Compare
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_32 ran successfully. |
Skipping test_sycl_event::test_backend in OS-LLVM-build workflow to work around intel/llvm#9264 Renamed test_sycl_event.py::test_backend to test_sycl_event.py::test_event_backend and excluded it from suite run on OS SYCL-bundle-based workflow
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_32 ran successfully. |
59c3027
to
874f4fe
Compare
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_32 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_33 ran successfully. |
531437f
to
802efbc
Compare
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_33 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_33 ran successfully. |
Wrapped certain DPC++ RT function calls, such as
sycl::device::get_devices
andsycl::platform::get_platforms
in try/except.Added validation of object returned by cache builders.
Fixed typo in exception name in a Python test suite file, then run each test file individually with invalid setting of
ONEAPI_DEVICE_SELECTOR=cpu
to make sure the all execute fine.All but
test_sycl_queue_manager.py
pass. This one hangs due to filed problem in DPC++ Runtime.Test suite continues to run clean with unset
ONEAPI_DEVICE_SELECTOR
environment variable, or it being set to a valid value, i.e.ONEAPI_DEVICE_SELECTOR=*:cpu
.