-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip known bad vertices in power recovery #5150
Merged
maliberty
merged 2 commits into
The-OpenROAD-Project:master
from
antmicro:rsz-power-skip-bad-vertices
May 28, 2024
Merged
Skip known bad vertices in power recovery #5150
maliberty
merged 2 commits into
The-OpenROAD-Project:master
from
antmicro:rsz-power-skip-bad-vertices
May 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang-tidy review says "All clean, LGTM! 👍" |
bad_vertices_ needs to be cleared at the end of recoverPower so it doesn't persist between calls. |
Ready for review? |
Sure |
I tested the current recover power designs and they look fine. It just need the clear mentioned above to be ready to merge. |
Signed-off-by: Krzysztof Bieganski <[email protected]>
ded8872
to
a98b25d
Compare
Added the clear. |
clang-tidy review says "All clean, LGTM! 👍" |
maliberty
reviewed
May 24, 2024
Signed-off-by: Krzysztof Bieganski <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
maliberty
approved these changes
May 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In power recovery, vertices that have already been tried and rejected can be tried again if they happen to be on another path we look at. Usually, the result is the same – we reject the vertex. Not only is this work unnecessary, it also prevents us from trying another (possibly better) vertex later in the path. Some stats on vertices that are tried in #4982:
max_length492/Y
load_slew487/Y
load_slew465/Y
load_slew447/Y
load_slew409/Y
load_slew400/Y
load_slew375/Y
load_slew57/Y
load_slew407/Y
fdct_zigzag.dct_mod.dct_block_0.dct_unit_0.ddin\[7\]$_DFFE_PN0P_/QN
max_length63/Y
_085272_/Y
load_slew402/Y
_083048_/Y
wire301/Y
load_slew62/Y
load_slew446/Y
_078958_/Y
load_slew399/Y
load_slew486/Y
load_slew462/Y
load_slew461/Y
_118922_/Y
_122581_/CON
load_slew177/Y
In the worst case, one vertex is visited 1325 times, 1324 of which result in worse worst slack. That's also about a quarter of all attempts.
This patch makes it so we don't revisit the vertices that were already rejected.
In the example in #4982, this speeds up GRT from ~1.5h to around 6 minutes, so we're looking at ~15x the performance on that particular design.
Also, the actual power recovery seems overall more effective (not sure how to weigh these values against each other).
