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

eliminate all format errors #39

Open
jeffhammond opened this issue Jan 12, 2016 · 7 comments
Open

eliminate all format errors #39

jeffhammond opened this issue Jan 12, 2016 · 7 comments
Assignees
Labels

Comments

@jeffhammond
Copy link
Member

This issues will be closed when the PRK can be built with CFLAGS=-Wformat -Werror. We have an enormous number of cases where we pass long or a long long to printf(%d).

@rfvander rfvander self-assigned this Jan 12, 2016
@rfvander
Copy link
Contributor

These errors arose recently when we turned many integers into longs to avoid integer overflow triggered by large problem sizes. It has always been my goal to compile without ANY warnings, and for a long time that was indeed the case, except for Charm++ builds, since header files created by Charm++ are not under the control of the programmer. We now need to revisit all these changes.

@jeffhammond
Copy link
Member Author

@rfvander Yeah, I know that. I just add issues every time I think of something we need to do, since it gives me a place to look when I need something to code :-)

@SamTWhite
Copy link

@rfvander Some code-gen formatting issues were fixed recently in Charm++, and I don't see any issues building the PRK with "-Wformat -Werror" using the current master branch of Charm++ built on icc or gcc.

@rfvander
Copy link
Contributor

That is excellent. Now we should still learn to build in a less verbose mode--same for Grappa--so that by default we don't get all this runtime information.

@SamTWhite
Copy link

By runtime information I assume you mean this?

Charmrun> scalable start enabled.
Charmrun> started all node programs in 0.595 seconds.
Charm++> Running in non-SMP mode: numPes 4
Converse/Charm++ Commit ID: v6.7.0-30-g80080fa
Charm++> scheduler running in netpoll mode.
CharmLB> Load balancer assumes all CPUs are same.
Charm++> Running on 1 unique compute nodes (8-way SMP).
Charm++> cpu topology info is gathered in 0.001 seconds.

We could add such a flag, but there is none right now.

@rfvander
Copy link
Contributor

Indeed. This is useful information, but clutters the output of batch runs.

@SamTWhite
Copy link

Our 6.7.1 release contains a '++quiet' runtime option to silence this output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants