Skip to main content

Mojo function

enable_p2p

enable_p2p() -> Bool

Enables peer-to-peer access between all GPU pairs if supported.

Must be called before any collective operations that require P2P access. The result is cached globally; subsequent calls return the cached value.

Returns:

Bool: True if P2P access was successfully enabled, False otherwise.

Was this page helpful?