Documentation ¶
Index ¶
- Constants
- type Session
- func (sess *Session) AllGather(w kb.Workspace) error
- func (sess *Session) AllReduce(w base.Workspace) error
- func (sess *Session) AllReduceWith(tree []int32, w kb.Workspace) error
- func (sess *Session) Barrier() error
- func (sess *Session) Broadcast(w kb.Workspace) error
- func (sess *Session) BytesConsensus(bs []byte, name string) (bool, error)
- func (sess *Session) CalcStats()
- func (sess *Session) CheckInterference() bool
- func (sess *Session) Consensus(w kb.Workspace) error
- func (sess *Session) CrossAllReduce(w base.Workspace) error
- func (sess *Session) Gather(w kb.Workspace) error
- func (sess *Session) GetEgressRates() []float64
- func (sess *Session) GetNumStrategies() int
- func (sess *Session) GetPeerLatencies() []time.Duration
- func (sess *Session) HostCount() int
- func (sess *Session) LocalBroadcast(w kb.Workspace) error
- func (sess *Session) LocalRank() int
- func (sess *Session) LocalReduce(w kb.Workspace) error
- func (sess *Session) LocalSize() int
- func (sess *Session) LogStats()
- func (sess *Session) Peer(rank int) plan.PeerID
- func (sess *Session) PrintStategyStats()
- func (sess *Session) Rank() int
- func (sess *Session) Reduce(w kb.Workspace) error
- func (sess *Session) SetGlobalStrategy(sl strategyList) error
- func (sess *Session) SimpleSetGlobalStrategy(forest []int32) error
- func (sess *Session) Size() int
- type StrategyStat
- type StrategyStatSnapshot
Constants ¶
const (
Mi = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
Session contains the immutable peer list for a given period of logical duration
func (*Session) AllReduceWith ¶ added in v0.2.3
AllReduceWith persoms an AllReduce collective communication operation given a tree topology for the strategy to be executted. ATTENTION: not stable feauture. Only for internal use.
func (*Session) BytesConsensus ¶
func (*Session) CalcStats ¶ added in v0.2.3
func (sess *Session) CalcStats()
CalcStats reports a Stat object for the current active strategyt
func (*Session) CheckInterference ¶ added in v0.2.3
CheckInterference is checking current state of the strategy stat metrics against the reference window and communicates with the cluster whether to change to an alternate communication strategy or not. Returns true if the cluster reached consensus on changing, flase otherwise.
func (*Session) CrossAllReduce ¶ added in v0.2.3
CrossAllReduce performs allreduce across all local roots.
func (*Session) GetEgressRates ¶ added in v0.2.3
func (*Session) GetNumStrategies ¶ added in v0.2.3
GetNumStrategies returns the number of different strategies for a given session
func (*Session) GetPeerLatencies ¶
GetPeerLatencies is deprecated
func (*Session) LocalBroadcast ¶ added in v0.2.3
func (*Session) LocalReduce ¶ added in v0.2.3
func (*Session) LogStats ¶ added in v0.2.3
func (sess *Session) LogStats()
LogStats stores a snapshot of the `StrategyStat` object for the current active communication strategy
func (*Session) PrintStategyStats ¶ added in v0.2.3
func (sess *Session) PrintStategyStats()
PrintStategyStats prints the Strategy Stats Snapshots that have been logged in the `sess.strategyStats` slice
func (*Session) SetGlobalStrategy ¶ added in v0.2.3
func (*Session) SimpleSetGlobalStrategy ¶ added in v0.2.3
type StrategyStat ¶ added in v0.2.3
type StrategyStat struct { Throughput float64 // contains filtered or unexported fields }
StrategyStat holds statistical data for a specific strategy
func (*StrategyStat) GetSnapshot ¶ added in v0.2.3
func (ss *StrategyStat) GetSnapshot() StrategyStatSnapshot
GetSnapshot return a StrategyStatSnapshot object containing a snapshot of the strategy's statistics
func (*StrategyStat) Reset ¶ added in v0.2.3
func (ss *StrategyStat) Reset()
Reset resets the counters associated with a specfiic `StrategyStat` object
type StrategyStatSnapshot ¶ added in v0.2.3
type StrategyStatSnapshot struct {
Throughput float64
}
StrategyStatSnapshot holds a snapshot of major metrics from the `StrategyStat` object