Skip to content

add show-resource-usage mode #3061

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

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

Conversation

w0lek
Copy link
Contributor

@w0lek w0lek commented May 20, 2025

New mode for vpr to show available device resources and exit.

Related Issue

(#3060)

Motivation and Context

This mode allows tighter integration of VPR with other tools, such as the Aurora software.

How Has This Been Tested?

This part was already implemented as a part of hotfixes and used in Aurora. Now we want to push it to upstream.

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
    Note: To add new test case we have to write report parser or dump whole pr output for --show_resource_usage on.
  • All new and existing tests passed

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels May 20, 2025
@github-actions github-actions bot added the docs Documentation label May 20, 2025
@w0lek w0lek marked this pull request as ready for review May 20, 2025 12:28
@w0lek w0lek requested a review from amin1377 May 20, 2025 13:58
@w0lek
Copy link
Contributor Author

w0lek commented May 20, 2025

@amin1377
FYI
i just found print_resource_usage() in stats.h which probably repeats the vpr_show_resource_usage() functionality.
i think i need update PR to use existed print_resource_usage() call.

Copy link
Contributor

@soheilshahrouz soheilshahrouz left a comment

Choose a reason for hiding this comment

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

@w0lek Thanks for thir PR!

We are writing a coding style guide to gradually move the code base toward a more uniform style. As part of this guide, we want to limit the usage of auto keyword only to complicated and long type names. I'd appreciate it if you could apply the suggested changes.

@w0lek w0lek marked this pull request as draft May 21, 2025 17:29
@w0lek w0lek requested a review from soheilshahrouz May 21, 2025 18:13
@w0lek w0lek marked this pull request as ready for review May 21, 2025 18:14
Copy link
Contributor

@soheilshahrouz soheilshahrouz left a comment

Choose a reason for hiding this comment

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

Thanks @w0lek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants