#include <mockbalancer.h>
Inherits LibGeoDecomp::LoadBalancer.
Public Member Functions | |
MockBalancer () | |
virtual | ~MockBalancer () |
virtual WeightVec | balance (const WeightVec &weights, const LoadVec &relativeLoads) |
Given the current workload distribution weights and the work time / wall clock time ratio relativeLoads for each node, return a new, possibly better distribution "newLoads". | |
Static Public Attributes | |
static std::string | events |
LibGeoDecomp::MockBalancer::MockBalancer | ( | ) |
References events.
LibGeoDecomp::MockBalancer::~MockBalancer | ( | ) | [virtual] |
References events.
MockBalancer::WeightVec LibGeoDecomp::MockBalancer::balance | ( | const WeightVec & | weights, | |
const LoadVec & | relativeLoads | |||
) | [virtual] |
Given the current workload distribution weights and the work time / wall clock time ratio relativeLoads for each node, return a new, possibly better distribution "newLoads".
Wall clock time is the sum of the work time and the waiting time during which a node is blocking on communication to other nodes.
NOTE: The sum of the elements in weights and the return value "newLoads" has to match, as the underlying assumption is, that this sum is the number of smallest, atomic work items that can be exchanged between to nodes. More formally:
Implements LibGeoDecomp::LoadBalancer.
References events.
std::string LibGeoDecomp::MockBalancer::events [static] |
Referenced by balance(), MockBalancer(), and ~MockBalancer().