Skip to main content
Log in

Mojo function

can_enable_p2p

can_enable_p2p(ctxs: List[DeviceContext]) -> Bool

Checks and enables peer-to-peer access between all GPU pairs.

Arguments: ctxs: List of device contexts representing different GPUs.

Enables peer access between all GPU pairs that support it.

Returns:

Bool indicating if P2P access is possible between all GPU pairs