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
True
ifdevice
can accesspeer
,False
otherwise.- Return type