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

ant: refactor logs and write report #5470

Merged
merged 11 commits into from
Jul 30, 2024

Conversation

eder-matheus
Copy link
Collaborator

  • To create the report for the nets, ant called checkRatioViolations twice. This was potentially causing issues regarding stability, and it wasn't efficient.
  • Also, the report was not consistent when multithreading was used.
  • The counters for the total number of violation needed reduction when using multithreading.

I created a map to store the report per net, sorting it by the net IDs. The report is written at the end of the ant flow, creating consistent reports independently of threading.

The downside is that the nets with violations will have all the ratio information in their report.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: Eder Monteiro <[email protected]>
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus
Copy link
Collaborator Author

@maliberty Now this is ready to review. I checked that both pipelines are generating the same result, and testing with sky130hd/microwatt also shows stable results.

if (report_file.is_open() && (violation || verbose)) {
report_file << par_report << "\n";
}
net_to_report_[db_net].report += par_report + "\n";
Copy link
Member

Choose a reason for hiding this comment

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

As it required for MT that db_net be present it would be better to use net_to_report_.at(db_net) to enforce it. Likewise elsewhere.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty enabled auto-merge July 29, 2024 22:10
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty merged commit 39ae355 into The-OpenROAD-Project:master Jul 30, 2024
9 checks passed
@eder-matheus eder-matheus deleted the ant_debug branch July 30, 2024 12:02
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.

3 participants