Skip to content

Commit

Permalink
#1830: TemperedWMin: pretend all nodes are underloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 28, 2023
1 parent 334b399 commit ecf1d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/temperedlb/temperedlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct TemperedLB : BaseLB {
void propagateRound(uint8_t k_cur_async, bool sync, EpochType epoch = no_epoch);
void propagateIncomingAsync(LoadMsgAsync* msg);
void propagateIncomingSync(LoadMsgSync* msg);
bool isUnderloaded(LoadType load) const;
virtual bool isUnderloaded(LoadType load) const;
bool isUnderloadedRelaxed(LoadType over, LoadType under) const;
bool isOverloaded(LoadType load) const;

Expand Down
4 changes: 4 additions & 0 deletions src/vt/vrt/collection/balance/temperedwmin/temperedwmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ struct TemperedWMin : TemperedLB {
* All ranks are allowed to initiate the information propagation stage
*/
bool canPropagate() const override { return true; }
/**
* TemperedWMin does not care about underloaded
*/
bool isUnderloaded(LoadType load) const override { return true; }

std::vector<NodeType> getPotentialRecipients() const override;

Expand Down

0 comments on commit ecf1d46

Please sign in to comment.