dpctl.SyclDevice.enable_peer_access¶
- SyclDevice.enable_peer_access(peer)¶
Enables this device (
self
) to access USM device allocations located onpeer
.Peer access may be disabled by calling
disable_peer_access()
.For details, see DPC++ peer access SYCL extension.
- Parameters:
peer (
dpctl.SyclDevice
) – Thedpctl.SyclDevice
instance to enable peer access to.- Raises:
TypeError – If
peer
is notdpctl.SyclDevice
.ValueError – If the backend associated with this device or
peer
does not support peer access.