Skip to main content

Mojo function

enable_p2p

enable_p2p() -> Bool

Enable peer-to-peer memory access between all GPU pairs if supported.

Attempts to enable P2P access between all device pairs. Returns False if P2P is not supported by the hardware rather than raising.

Returns:

Bool: True if P2P access is enabled between all GPU pairs, False otherwise.

Was this page helpful?