Skip to main content

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.