Skip to main content
Log in

Mojo function

can_enable_p2p

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

If peer-to-peer access is supported, enables it between all GPU pairs.

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

Returns:

True if P2P access is possible between all GPU pairs, False otherwise.