Skip to content

Commit

Permalink
mpl2: error when balance_constraint hits 90%
Browse files Browse the repository at this point in the history
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
  • Loading branch information
eder-matheus committed Dec 23, 2024
1 parent da8129f commit 90f5a1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mpl2/src/clusterEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,11 @@ void ClusteringEngine::breakLargeFlatCluster(Cluster* parent)
parent->getName(),
balance_constraint);

if (balance_constraint >= 90) {
logger_->error(
MPL, 41, "Cannot find a balanced partitioning for the clusters.");
}

solution = triton_part_->PartitionKWaySimpleMode(num_parts,
balance_constraint,
seed,
Expand Down

0 comments on commit 90f5a1a

Please sign in to comment.