The-OpenROAD-Project / OpenLane

OpenLane is an automated RTL to GDSII flow based on several components including OpenROAD, Yosys, Magic, Netgen and custom methodology scripts for design exploration and optimization.
https://openlane.readthedocs.io/
Apache License 2.0
1.31k stars 369 forks source link

mpw-5c are very noisy for output logs #977

Closed mattvenn closed 1 year ago

mattvenn commented 2 years ago

Prompt

running make user_project_wrapper generates 100k lines of logs

Proposal

show only errors and top level information. Each tool can log into the log directories as before.

kareefardi commented 2 years ago

I believe that's not an openlane issue. It's rather openlane usage issue. Openlane has -disable_output in which it only prints the contents of openlane.log. Also for mpw-5c, there is a bug where make user_project_wrapper or make user_project_example or any make <block> will actually run all the blocks, fixed here https://github.com/efabless/caravel_user_project/pull/89/. That's one more reason why the logs you are seeing are huge

donn commented 2 years ago

Still, the default should be the saner option. -disable_output should be inverted into -verbose.

donn commented 2 years ago

Issue fixed in main- as this will continue to affect mpw-5c, the issue will remain open for documentation purposes.

proppy commented 2 years ago

... -disable_output (now the default behavior)

While it's nice to have less spammy output, it does make it harder to get a sense of how much progress the tooling doing, esp. for long running operation like [INFO]: Running Detailed Routing....

Should we open another issue to discuss further improvement or is that ok to keep this issue open?

(I also just happened to stumble upon https://clig.dev by @cli-guidelines w/ some good recommendations about output management https://clig.dev/#output and progress indicator https://clig.dev/#robustness-guideline)

donn commented 2 years ago

You can just add -verbose, then.

I do agree about an exception for routing though. Maybe the OR team can add a more tty-friendly output format..? @maliberty Thoughts?

proppy commented 2 years ago

@donn do you have some hints on how the -verbose flag works (does it take a level? or is that just a all of nothing thing?); it doesn't seems to affect the output for me.

proppy commented 2 years ago

@donn my bad it's already documented in https://github.com/The-OpenROAD-Project/OpenLane/blob/master/docs/source/openlane_commands.md#general-commands, I just had to set it to something > 1 to start getting more detailed output :)