From f7ca546e60fa000fe7e6ceb981c123321691f1bf Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Tue, 28 Jul 2020 17:59:55 -0400 Subject: [PATCH] #649: BaseLB: ensure asynchronous work runs in correct epoch --- src/vt/vrt/collection/balance/baselb/baselb.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vt/vrt/collection/balance/baselb/baselb.cc b/src/vt/vrt/collection/balance/baselb/baselb.cc index 13e6c8c4bd..589f457120 100644 --- a/src/vt/vrt/collection/balance/baselb/baselb.cc +++ b/src/vt/vrt/collection/balance/baselb/baselb.cc @@ -74,10 +74,8 @@ void BaseLB::startLB( importProcessorData(in_comm_stats); - term::TerminationDetector::Scoped::collective( - [this] { computeStatistics(); }, - [this] { finishedStats(); } - ); + runInEpochCollective([this] { computeStatistics(); }); + runInEpochCollective([this] { finishedStats(); }); } BaseLB::LoadType BaseLB::loadMilli(LoadType const& load) const {