Skip to content

Commit 4b3e9f1

Browse files
committed
Clarify which device has invalid backend in peer_access methods
1 parent bdfee1b commit 4b3e9f1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dpctl/_sycl_device.pyx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1842,13 +1842,13 @@ cdef class SyclDevice(_SyclDevice):
18421842
BTy1 = DPCTLDevice_GetBackend(self._device_ref)
18431843
if BTy1 not in _peer_access_backends:
18441844
raise ValueError(
1845-
"Peer access not supported for backend "
1845+
"Peer access not supported for this device backend "
18461846
f"{_backend_type_to_filter_string_part(BTy1)}"
18471847
)
18481848
BTy2 = DPCTLDevice_GetBackend(p_dev.get_device_ref())
18491849
if BTy2 not in _peer_access_backends:
18501850
raise ValueError(
1851-
"Peer access not supported for backend "
1851+
"Peer access not supported for peer device backend "
18521852
f"{_backend_type_to_filter_string_part(BTy2)}"
18531853
)
18541854

@@ -1906,13 +1906,13 @@ cdef class SyclDevice(_SyclDevice):
19061906
BTy1 = DPCTLDevice_GetBackend(self._device_ref)
19071907
if BTy1 not in _peer_access_backends:
19081908
raise ValueError(
1909-
"Peer access not supported for backend "
1909+
"Peer access not supported for this device backend "
19101910
f"{_backend_type_to_filter_string_part(BTy1)}"
19111911
)
19121912
BTy2 = DPCTLDevice_GetBackend(p_dev.get_device_ref())
19131913
if BTy2 not in _peer_access_backends:
19141914
raise ValueError(
1915-
"Peer access not supported for backend "
1915+
"Peer access not supported for peer device backend "
19161916
f"{_backend_type_to_filter_string_part(BTy2)}"
19171917
)
19181918

@@ -1964,13 +1964,13 @@ cdef class SyclDevice(_SyclDevice):
19641964
)
19651965
if BTy1 not in _peer_access_backends:
19661966
raise ValueError(
1967-
"Peer access not supported for backend "
1967+
"Peer access not supported for this device backend "
19681968
f"{_backend_type_to_filter_string_part(BTy1)}"
19691969
)
19701970
BTy2 = DPCTLDevice_GetBackend(p_dev.get_device_ref())
19711971
if BTy2 not in _peer_access_backends:
19721972
raise ValueError(
1973-
"Peer access not supported for backend "
1973+
"Peer access not supported for peer device backend "
19741974
f"{_backend_type_to_filter_string_part(BTy2)}"
19751975
)
19761976

@@ -2016,13 +2016,13 @@ cdef class SyclDevice(_SyclDevice):
20162016
BTy1 = DPCTLDevice_GetBackend(self._device_ref)
20172017
if BTy1 not in _peer_access_backends:
20182018
raise ValueError(
2019-
"Peer access not supported for backend "
2019+
"Peer access not supported for this device backend "
20202020
f"{_backend_type_to_filter_string_part(BTy1)}"
20212021
)
20222022
BTy2 = DPCTLDevice_GetBackend(p_dev.get_device_ref())
20232023
if BTy2 not in _peer_access_backends:
20242024
raise ValueError(
2025-
"Peer access not supported for backend "
2025+
"Peer access not supported for peer device backend "
20262026
f"{_backend_type_to_filter_string_part(BTy2)}"
20272027
)
20282028

0 commit comments

Comments
 (0)