Skip to content

Commit

Permalink
#2382: ccm-lb: fix iter time so it's not additive
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Dec 23, 2024
1 parent 6cc5fd9 commit 8e14f8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,7 @@ void TemperedLB::originalTransfer() {
if (theConfig()->vt_debug_temperedlb) {
// compute rejection rate because it will be printed
runInEpochCollective("TemperedLB::originalTransfer -> compute rejection", [=] {
iter_time_ = MPI_Wtime() - iter_time_;
proxy_.allreduce<&TemperedLB::rejectionStatsHandler, collective::PlusOp>(
n_rejected, n_transfers, 0, 0
);
Expand Down Expand Up @@ -2721,6 +2722,7 @@ void TemperedLB::swapClusters() {
int n_rejected = 0;
auto remote_block_count = getRemoteBlockCountHere();
runInEpochCollective("TemperedLB::swapClusters -> compute rejection", [=] {
iter_time_ = MPI_Wtime() - iter_time_;
proxy_.allreduce<&TemperedLB::rejectionStatsHandler, collective::PlusOp>(
n_rejected, n_transfers_swap_, remote_block_count, cycle_locks_
);
Expand Down

0 comments on commit 8e14f8d

Please sign in to comment.