-
Notifications
You must be signed in to change notification settings - Fork 416
fix run_vtr_task.py
getting stuck if an input has an error
#1950
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
Conversation
09e2fe9
to
7789fb5
Compare
@vaughnbetz - this PR is about a minor change to the |
vtr_flow/scripts/run_vtr_flow.py
Outdated
@@ -525,10 +561,10 @@ def vtr_command_main(arg_list, prog=None): | |||
seconds = datetime.now() - start | |||
|
|||
print( | |||
"{status} (took {time}, vpr run consumed {max_mem} memory)".format( | |||
"{status} (took {time}, {stage[0]} run consumed {stage[1]} memory)".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to say this was the overall peak stage in this message.
The code looks good.
|
… not generated - show the maximum memory usage of all VTR stages in the run_vtr_flow output Signed-off-by: Seyed Alireza Damghani <[email protected]>
@vaughnbetz - thanks for the comments. The code added to the
However, if you would like to have all memory peaks printed separately (something like: Regarding the second comment, I added two new columns to the QoR results, named vtr_max_mem_stage and vtr_max_mem. The first column shows the stage that achieved the maximum memory peak in the entire VTR flow and the latter one shows the amount of the peak memory in human-readable format (i.e., 37.66 MiB instead of 38560). It would be great if you could let me know your thoughts. I have also uploaded the new QoR results of a |
Thanks Seyed. I think this output is good and once CI is green it can be merged. |
@sdamghan can we merge this? |
@vaughnbetz Thanks, |
Thanks, @sdamghan. Appreciate it! |
Description
The
run_vtr_flow.py
script gets stuck on callingget_memory_usage(logfile)
when the logfile does not exist. This PR fixes the bug, in addition to showing the maximum memory of all VTR flow stages instead of only the VPR stage in the final output.Related Issue
Issue #1949
Motivation and Context
If an input file has errors and the VTR front-ends fail, the
run_vtr_task
script gets stuck and the terminal does not come back to the promptHow Has This Been Tested?
Types of changes
Checklist: