Skip to content
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

Optimize BFS search #214

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mkurc-ant
Copy link

This PR contains few optimizations related to BFS search:

  • setBfsInQueue(BfsIndex index, bool value) got replaced by two functions setBfsInQueue(BfsIndex index) and clrBfsInQueue(BfsIndex index). This removes the need for checking the set/clear argument.
  • Map is used instead of UnorderedMap for ArrivalMap. Since Map orders keys searching is quicker.

Assessment of introduced changes was done by running OpenROAD-flow-scripts CTS stage (multiple runs) on BlackParrot design with nangate45 PDK locally on an Intel(R) i7-8700 CPU @ 3.20GHz machine. Prior to the modifications the stage took about 248.4 seconds whereas with the modifications around 243.6 seconds

Internal-Tag: [#52792]
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Internal-Tag: [#52792]
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Internal-Tag: [#52792]
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant