DistributedCommunicationRoot

class Object
trait Matchable
class Any

Value members

Abstract methods

def broadcast(command: Command): IO[Unit]

Broadcast command to all peers (non root ranks)

Broadcast command to all peers (non root ranks)

Value parameters:
state

The value returned from onNcclCliqueReady

def onUniqueIdReady(uid: NcclUniqueId): IO[Unit]

Framework will call this when the nccl unique id is ready

Framework will call this when the nccl unique id is ready

Implementations should respond with this uid to each peer who try to join this clique after this call.

Returns a suspended side effect. Once the returned value is completed the implementation is ready to accept peers to its clique.

def peers(): IO[Int]

Returns the number of joined peers

Returns the number of joined peers

Used for reporting and testing