Skip to content
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

[CI, bugfix] Skip test if openCL CPU runtime not installed, but DPC portion built #2200

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion onedal/common/tests/test_sycl.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ def test_sycl_device_attributes(queue):

@pytest.mark.skipif(not _is_dpc_backend, reason="requires dpc backend")
def test_backend_queue():
q = _backend.SyclQueue("cpu")
try:
q = _backend.SyclQueue("cpu")
except RuntimeError:
pytest.skip("openCL CPU runtime not installed")
Alexsandruss marked this conversation as resolved.
Show resolved Hide resolved

# verify copying via a py capsule object is functional
q2 = _backend.SyclQueue(q._get_capsule())
# verify copying via the _get_capsule attribute
Expand Down
Loading