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

Python function

enable_all_peer_access

enable_all_peer_access()โ€‹

max.driver.enable_all_peer_access() โ†’ None

source

Enables peer-to-peer memory access between all available GPU pairs.

This must be called before any collective operations (allreduce, broadcast, etc.) that require direct GPU-to-GPU memory access. It is safe to call multiple times; the underlying runtime caches the result after the first successful enablement.

Raises:

RuntimeError โ€“ If P2P access cannot be enabled between any GPU pair.