From f832796b18d19aa868ba27e018dcb50d58e29e4f Mon Sep 17 00:00:00 2001 From: Nicole Lemaster Slattengren Date: Tue, 23 Mar 2021 15:04:32 -0700 Subject: [PATCH] #1279: gossiplb: name barrier to prevent hang --- src/vt/vrt/collection/balance/gossiplb/gossiplb.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vt/vrt/collection/balance/gossiplb/gossiplb.cc b/src/vt/vrt/collection/balance/gossiplb/gossiplb.cc index 2c141ec1d6..62637450c4 100644 --- a/src/vt/vrt/collection/balance/gossiplb/gossiplb.cc +++ b/src/vt/vrt/collection/balance/gossiplb/gossiplb.cc @@ -405,7 +405,8 @@ void GossipLB::informSync() { theSched()->runSchedulerWhile([this]{ return not setup_done_; }); for (; k_cur_ < k_max_; ++k_cur_) { - vt::theCollective()->barrier(); + auto kbarr = theCollective()->newNamedCollectiveBarrier(); + theCollective()->barrier(nullptr, kbarr); auto name = fmt::format("GossipLB: informSync k_cur={}", k_cur_); auto propagate_epoch = theTerm()->makeEpochCollective(name);