@@ -224,7 +224,7 @@ def _cached_filter_string(d : SyclDevice):
224224 and cached with `functools.cache`.
225225
226226 Args:
227- d (dpctl.SyclDevice):
227+ d (:class:` dpctl.SyclDevice` ):
228228 A device for which to compute the filter string.
229229 Returns:
230230 out(str):
@@ -1797,24 +1797,30 @@ cdef class SyclDevice(_SyclDevice):
17971797 return _get_devices(cDVRef)
17981798
17991799 def can_access_peer_access_supported (self , peer ):
1800- """ Returns ``True`` if `self` can enable peer access
1801- to `peer`, ``False`` otherwise.
1800+ """ Returns ``True`` if this device (``self``) can enable peer access
1801+ to USM device memory on ``peer``, ``False`` otherwise.
1802+
1803+ If peer access is supported, it may be enabled by calling
1804+ :meth:`.enable_peer_access`.
1805+
1806+ For details, see
1807+ :oneapi_peer_access:`DPC++ peer access SYCL extension <>`.
18021808
18031809 Args:
1804- peer (dpctl.SyclDevice):
1805- The :class:`dpctl.SyclDevice` instance to
1806- check .
1810+ peer (:class:` dpctl.SyclDevice` ):
1811+ The :class:`dpctl.SyclDevice` instance to check for peer access
1812+ by this device .
18071813
18081814 Returns:
18091815 bool:
1810- ``True`` if `self` can enable peer access
1811- to ` peer`, otherwise ``False``.
1816+ ``True`` if this device may access USM device memory on
1817+ `` peer`` when peer access is enabled , otherwise ``False``.
18121818
18131819 Raises:
18141820 TypeError:
1815- If `peer` is not `dpctl.SyclDevice`.
1821+ If `` peer`` is not :class: `dpctl.SyclDevice`.
18161822 ValueError:
1817- If the backend associated with `self` or `peer` does not
1823+ If the backend associated with this device or `` peer` ` does not
18181824 support peer access.
18191825 """
18201826 cdef SyclDevice p_dev
@@ -1855,25 +1861,32 @@ cdef class SyclDevice(_SyclDevice):
18551861 )
18561862
18571863 def can_access_peer_atomics_supported (self , peer ):
1858- """ Returns ``True`` if `self` can enable peer access
1859- to and can atomically modify memory on `peer`, ``False`` otherwise.
1864+ """ Returns ``True`` if this device (``self``) can concurrently access
1865+ and modify USM device memory on ``peer`` when peer access is enabled,
1866+ ``False`` otherwise.
1867+
1868+ If peer access is supported, it may be enabled by calling
1869+ :meth:`.enable_peer_access`.
1870+
1871+ For details, see
1872+ :oneapi_peer_access:`DPC++ peer access SYCL extension <>`.
18601873
18611874 Args:
1862- peer (dpctl.SyclDevice):
1863- The :class:`dpctl.SyclDevice` instance to
1864- check .
1875+ peer (:class:` dpctl.SyclDevice` ):
1876+ The :class:`dpctl.SyclDevice` instance to check for concurrent
1877+ peer access and modification by this device .
18651878
18661879 Returns:
18671880 bool:
1868- ``True`` if `self` can enable peer access
1869- to and can atomically modify memory on `peer`,
1881+ ``True`` if this device may concurrently access and modify USM
1882+ device memory on `` peer`` when peer access is enabled ,
18701883 otherwise ``False``.
18711884
18721885 Raises:
18731886 TypeError:
1874- If `peer` is not `dpctl.SyclDevice`.
1887+ If `` peer`` is not :class: `dpctl.SyclDevice`.
18751888 ValueError:
1876- If the backend associated with `self` or `peer` does not
1889+ If the backend associated with this device or `` peer` ` does not
18771890 support peer access.
18781891 """
18791892 cdef SyclDevice p_dev
@@ -1914,19 +1927,24 @@ cdef class SyclDevice(_SyclDevice):
19141927 )
19151928
19161929 def enable_peer_access (self , peer ):
1917- """ Enables this device (`self`) to access USM device allocations
1918- located on `peer`.
1930+ """ Enables this device (``self``) to access USM device allocations
1931+ located on ``peer``.
1932+
1933+ Peer access may be disabled by calling :meth:`.disable_peer_access`.
1934+
1935+ For details, see
1936+ :oneapi_peer_access:`DPC++ peer access SYCL extension <>`.
19191937
19201938 Args:
1921- peer (dpctl.SyclDevice):
1922- The :class:`dpctl.SyclDevice` instance to
1923- enable peer access to.
1939+ peer (:class:` dpctl.SyclDevice` ):
1940+ The :class:`dpctl.SyclDevice` instance to enable peer access
1941+ to.
19241942
19251943 Raises:
19261944 TypeError:
1927- If `peer` is not `dpctl.SyclDevice`.
1945+ If `` peer`` is not :class: `dpctl.SyclDevice`.
19281946 ValueError:
1929- If the backend associated with `self` or `peer` does not
1947+ If the backend associated with this device or `` peer` ` does not
19301948 support peer access.
19311949 """
19321950 cdef SyclDevice p_dev
@@ -1966,18 +1984,21 @@ cdef class SyclDevice(_SyclDevice):
19661984 return
19671985
19681986 def disable_peer_access (self , peer ):
1969- """ Disables peer access to `peer` from `self`.
1987+ """ Disables peer access to ``peer`` from this device (``self``).
1988+
1989+ For details, see
1990+ :oneapi_peer_access:`DPC++ peer access SYCL extension <>`.
19701991
19711992 Args:
1972- peer (dpctl.SyclDevice):
1993+ peer (:class:` dpctl.SyclDevice` ):
19731994 The :class:`dpctl.SyclDevice` instance to
19741995 disable peer access to.
19751996
19761997 Raises:
19771998 TypeError:
1978- If `peer` is not `dpctl.SyclDevice`.
1999+ If `` peer`` is not :class: `dpctl.SyclDevice`.
19792000 ValueError:
1980- If the backend associated with `self` or `peer` does not
2001+ If the backend associated with this device or `` peer` ` does not
19812002 support peer access.
19822003 """
19832004 cdef SyclDevice p_dev
@@ -2134,7 +2155,7 @@ cdef class SyclDevice(_SyclDevice):
21342155 same _device_ref as this SyclDevice.
21352156
21362157 Args:
2137- other (dpctl.SyclDevice):
2158+ other (:class:` dpctl.SyclDevice` ):
21382159 A :class:`dpctl.SyclDevice` instance to
21392160 compare against.
21402161
0 commit comments