IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

enable_p2p

def 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.