Skip to content

mpl: make cluster placement failure message more user-actionable - #11148

Merged
joaomai merged 1 commit into
The-OpenROAD-Project:masterfrom
AcKoucher:mpl-better-failure-message
Aug 17, 2026
Merged

mpl: make cluster placement failure message more user-actionable#11148
joaomai merged 1 commit into
The-OpenROAD-Project:masterfrom
AcKoucher:mpl-better-failure-message

Conversation

@AcKoucher

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
@AcKoucher
AcKoucher requested a review from a team as a code owner August 14, 2026 20:21
@AcKoucher
AcKoucher requested a review from joaomai August 14, 2026 20:21
@AcKoucher

Copy link
Copy Markdown
Contributor Author

@jeffng-or FYI.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the error logging in HierRTLMP::placeChildren when the annealing engine fails to find a valid solution, providing more specific error messages depending on whether the failure occurred at the root cluster or a sub-cluster. The review feedback correctly identifies a potential null pointer dereference on best_sa if the logger does not terminate execution, and suggests adding an explicit return; statement to ensure robust error handling.

Comment thread src/mpl/src/hier_rtlmp.cpp

@joaomai joaomai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to also report the tried utilization values from the utilization list to better guide the user. If it failed, it tried all values and none worked right?

@AcKoucher

Copy link
Copy Markdown
Contributor Author

@joaomai I agree. I actually think it would be better to have a more informative output throughout the execution so that it's clear that the utilization mutates based on the amount of halo area. How about we merge this change and I'll look into more descriptive logging subsequently?

@joaomai
joaomai enabled auto-merge August 17, 2026 18:39
@joaomai
joaomai self-requested a review August 17, 2026 18:40
@joaomai
joaomai merged commit bc9fd61 into The-OpenROAD-Project:master Aug 17, 2026
17 checks passed
@AcKoucher
AcKoucher deleted the mpl-better-failure-message branch August 17, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants