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

Do not print initial memory availability for every MPI task #4149

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

prckent
Copy link
Contributor

@prckent prckent commented Aug 3, 2022

Proposed changes

Increase output readability in MPI jobs by not printing free memory for every single MPI task. Rely on #4130 instead. If problems ever occur we could expand the #4130 report to include max and min values.

What type(s) of changes does this code introduce?

  • New feature

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

nitrogen, nightly gcc 12 mpi configuration

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'
  • NA. Code added or changed in the PR has been clang-formatted
  • NA. This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • NA. Documentation has been added (if appropriate)

{
if (OHMMS::Controller->rank() == proc)
{
fprintf(stderr, "Rank = %4d Free Memory = %5zu MB\n", proc, (freemem() >> 20));
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove #include "Platforms/Host/sysutil.h" which is only need by freemem.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will take care of this as I'm preparing another similar change.

@jtkrogel
Copy link
Contributor

jtkrogel commented Aug 3, 2022

Printed max and min values would be good. I have caught issues in the past using the per MPI free memory report.

@ye-luo
Copy link
Contributor

ye-luo commented Aug 3, 2022

Test this please

Copy link
Contributor

@ye-luo ye-luo left a comment

Choose a reason for hiding this comment

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

LGTM

@ye-luo ye-luo enabled auto-merge August 3, 2022 22:38
@ye-luo ye-luo merged commit 4d44256 into QMCPACK:develop Aug 4, 2022
@prckent prckent deleted the quietmem branch August 19, 2022 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants