Skip to content

Commit

Permalink
avoid potential endless loop in deterministic LP
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Nov 26, 2024
1 parent ad13a1c commit fab2b5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ namespace mt_kahypar {
}
}

if (num_overloaded_blocks > 0) {
// only try again if the input was balanced, otherwise we probably can't achieve balance
if (num_overloaded_blocks > 0 && num_overloaded_before_round == 0) {
DBG << "still overloaded" << num_overloaded_blocks << V(num_moves) << V(num_reverted_moves)
<< V(num_overloaded_before_round) << V(num_overloaded_before_first_pass) << "trigger second run";

Expand Down

0 comments on commit fab2b5e

Please sign in to comment.