torch.xpu.can_device_access_peer
- torch.xpu.can_device_access_peer(device, peer)
Query whether a device can access a peer device’s memory.
- Parameters:
device (torch.device or ) – selected device.
Query whether a device can access a peer device’s memory.
device (torch.device or ) – selected device.
peer (torch.device or int or str) – peer device to query access to.
True if device can access peer, False otherwise.