Skip to content

Commit 6a34d74

Browse files
committed
Update docstring of can_access_peer
1 parent 56bd37f commit 6a34d74

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dpctl/_sycl_device.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,9 @@ cdef class SyclDevice(_SyclDevice):
18701870
The :class:`dpctl.SyclDevice` instance to check for peer access
18711871
by this device.
18721872
value (str, optional):
1873-
Specifies the kind of peer access being queried
1873+
Specifies the kind of peer access being queried.
1874+
1875+
The supported values are
18741876
18751877
- ``"access_supported"``
18761878
Returns ``True`` if it is possible for this device to
@@ -1879,14 +1881,13 @@ cdef class SyclDevice(_SyclDevice):
18791881
- ``"atomics_supported"``
18801882
Returns ``True`` if it is possible for this device to
18811883
concurrently access and atomically modify USM device
1882-
memory on ``peer`` when enabled.
1884+
memory on ``peer`` when enabled. Atomics must have
1885+
``memory_scope::system`` when modifying memory on a peer
1886+
device.
18831887
18841888
If ``False`` is returned, these operations result in
18851889
undefined behavior.
18861890
1887-
Note: atomics must have ``memory_scope::system`` when
1888-
modifying memory on a peer device.
1889-
18901891
Default: ``"access_supported"``
18911892
18921893
Returns:

0 commit comments

Comments
 (0)