Skip to content

Commit 8ca421f

Browse files
committed
#1830: TemperedWMin: pretend all nodes are underloaded
1 parent 4415e6c commit 8ca421f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/vt/vrt/collection/balance/temperedlb/temperedlb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct TemperedLB : BaseLB {
111111
void propagateRound(uint8_t k_cur_async, bool sync, EpochType epoch = no_epoch);
112112
void propagateIncomingAsync(LoadMsgAsync* msg);
113113
void propagateIncomingSync(LoadMsgSync* msg);
114-
bool isUnderloaded(LoadType load) const;
114+
virtual bool isUnderloaded(LoadType load) const;
115115
bool isUnderloadedRelaxed(LoadType over, LoadType under) const;
116116
bool isOverloaded(LoadType load) const;
117117

src/vt/vrt/collection/balance/temperedwmin/temperedwmin.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ struct TemperedWMin : TemperedLB {
6969
* All ranks are allowed to initiate the information propagation stage
7070
*/
7171
bool canPropagate() const override { return true; }
72+
/**
73+
* TemperedWMin does not care about underloaded
74+
*/
75+
bool isUnderloaded(LoadType load) const override { return true; }
7276

7377
std::vector<NodeType> getPotentialRecipients() const override;
7478
TimeType getModeledWork(const elm::ElementIDStruct& obj) const override;

0 commit comments

Comments
 (0)