torch.xpu.can_device_access_peer#
- torch.xpu.can_device_access_peer(device, peer)[source]#
Query whether a device can access a peer device’s memory.
- Parameters
device (torch.device or int or str) – selected device.
peer (torch.device or int or str) – peer device to query access to.
- Returns
Trueifdevicecan accesspeer,Falseotherwise.- Return type