Skip to content

Commit 2ba088b

Browse files
committed
#2201: temperedlb: use gamma as coefficient
1 parent 5b0a9f7 commit 2ba088b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,8 @@ double TemperedLB::computeWorkAfterClusterSwap(
10081008
// Remove/add clusters' intra-comm
10091009
double const node_intra_send = info.intra_send_vol;
10101010
double const node_intra_recv = info.intra_recv_vol;
1011-
node_work -= delta * std::max(node_intra_send, node_intra_recv);
1012-
node_work += delta * std::max(
1011+
node_work -= gamma * std::max(node_intra_send, node_intra_recv);
1012+
node_work += gamma * std::max(
10131013
node_intra_send - to_remove.intra_send_vol + to_add.intra_send_vol,
10141014
node_intra_recv - to_remove.intra_recv_vol + to_add.intra_recv_vol
10151015
);

0 commit comments

Comments
 (0)