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.SyclDeviceinstance to enable peer access to.- Raises:
TypeError – If
peeris notdpctl.SyclDevice.ValueError – If the backend associated with this device or
peerdoes not support peer access.