Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 7 additions & 0 deletions dpctl/tests/test_sycl_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .helper import (
create_invalid_capsule,
get_sub_device_or_skip,
is_adaptivecpp,
skip_if_usm_unsupported,
)

Expand Down Expand Up @@ -82,6 +83,12 @@ def test_context_not_equals():
ctx_gpu = dpctl.SyclContext("gpu")
except dpctl.SyclContextCreationError:
pytest.skip()
if is_adaptivecpp() and any(
d.backend == dpctl.backend_type.cuda for d in ctx_gpu.get_devices()
):
pytest.skip(
"AdaptiveCpp hashes the contexts of cuda:0 and the CPU equally"
)
try:
ctx_cpu = dpctl.SyclContext("cpu")
except dpctl.SyclContextCreationError:
Expand Down
4 changes: 4 additions & 0 deletions dpctl/tests/test_sycl_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def test_context_not_equals():
gpuQ = dpctl.SyclQueue("gpu")
except dpctl.SyclQueueCreationError:
pytest.skip()
if is_adaptivecpp() and gpuQ.sycl_device.backend == dpctl.backend_type.cuda:
pytest.skip(
"AdaptiveCpp hashes the contexts of cuda:0 and the CPU equally"
)
ctx_gpu = gpuQ.get_sycl_context()
try:
cpuQ = dpctl.SyclQueue("cpu")
Expand Down
Loading