Python function
enable_all_peer_access
enable_all_peer_access()โ
max.driver.enable_all_peer_access() โ None
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!