Skip to content

Commit

Permalink
#1376: gossiplb: fix for serial load balancing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nlslatt committed May 3, 2021
1 parent b80f04f commit 2e5a7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/vrt/collection/balance/gossiplb/gossiplb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ void GossipLB::inputParams(balance::SpecEntry* spec) {
f_ = static_cast<uint16_t>(std::ceil(std::pow(num_nodes, 1.0/k_max_)));
} else {
// set both the fanout and the rounds
k_max_ = static_cast<uint16_t>(
k_max_ = static_cast<uint16_t>(std::max(1.0,
std::round(std::sqrt(std::log(num_nodes)/std::log(2.0)))
);
));
f_ = static_cast<uint16_t>(std::ceil(std::pow(num_nodes, 1.0/k_max_)));
}
} else if (knowledge_ == KnowledgeEnum::Complete) {
Expand Down

0 comments on commit 2e5a7be

Please sign in to comment.