-
Notifications
You must be signed in to change notification settings - Fork 415
[CI] Logs Memory during CI Run #1851
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
[CI] Logs Memory during CI Run #1851
Conversation
@ganeshgore Need to fix errors in Python Lint |
vtr_flow/scripts/run_vtr_flow.py
Outdated
with open(temp_dir/"vpr.out","r") as fpmem: | ||
for line in fpmem.readlines(): | ||
if "Maximum resident set size" in line: | ||
mem_usage = int(line.split()[-1])//1024 |
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.
See if you need to use the function format_human_readable_memory
to format the mem values:
def format_human_readable_memory(num_bytes): |
Looks like a good change -- thanks @ganeshgore . We don't get the resident set size from valgrind; we make os calls so we can get it on every run without slowdown, so parsing it out in CI as you've done is very useful (it's always produced). To fix the python lint errors, you just have to run the autoformatter on the code and push a new commit:
|
@ganeshgore Still see errors in the python lint |
@vaughnbetz Sorry for bothering. We may need to add @ganeshgore to the contributor list so that the kokoro can be triggered. @ganeshgore Still see lint problems. |
Thanks @ganeshgore and @tangxifan . The code looks good and I started the CI workflow, and added @ganeshgore as a committer for the future. |
Thank you @vaughnbetz, For the current changes, I passed all tests in my repo. So we are just waiting for tests to finish here. |
@vaughnbetz Not sure why the VtR yosys+Odin-II test is stuck here. See something similar at #1843 If needed, I can rerun kokoro and see if the issue can be resolved. |
@sdamghan : any ideas? Is this a deprecated test? I can force merge anyway, but it would be good to figure out if this is an ongoing issue. |
@vaughnbetz no it is not deprecated, actually @QuantamHD just changed Yosys+Odin-II CI tests' name on the Google side (issue #1848 ). It's interesting why it appears in this PR and #1843 since I do not see Yosys+Odin-II (presubmit) and Yosys+Odin-II (continuous) in my recent WIP PR (#1844 ). Maybe a new 'kokoro:force-run' would solve the issue. |
Thanks @sdamghan. Let me try. |
@vaughnbetz The CI is green now. I believe it is ready to be merged. |
Description
Logs peak memory usage during VPR CI run. The information is extracted from the
vpr.out
(which I assumed obtained using valgrid)Related Issue
Addresses part of issue #1808
#1808 (comment)
Motivation and Context
How Has This Been Tested?
It has been tested locally, I have attached the screenshot.

Types of changes
Checklist: