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

Put some legacy energy density variables back into the correct hdf5 group. #5258

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

PDoakORNL
Copy link
Contributor

Proposed changes

  • Bugfix
    At least on my system check_stat.py cannot successfully read the output of the legacy energy density estimator anymore. This fixes that.
    Consequently the
    short-diamondC_1x1x1_pp-vmc-estimator-energydensity-cell-4-4-check
    short-diamondC_1x1x1_pp-dmc-estimator-energydensity-cell-4-4-check
    tests pass

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

dgx workstation.

Checklist

Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.

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

src/QMCHamiltonians/ReferencePoints.cpp Outdated Show resolved Hide resolved
{
h5desc.emplace_back(hdf_path{"reference_points"});
h5desc.emplace_back(enclosing_path / "reference_points");
Copy link
Contributor

Choose a reason for hiding this comment

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

Just feel the for-loop at 137 can be replaced with a more elegant range-based loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree but since I don't want to write unit tests for dead code I'm going to leave it.

Copy link
Contributor

Choose a reason for hiding this comment

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

fair enough

src/QMCHamiltonians/SpaceGrid.cpp Outdated Show resolved Hide resolved
src/QMCHamiltonians/SpaceGrid.h Outdated Show resolved Hide resolved
@prckent
Copy link
Contributor

prckent commented Dec 27, 2024

Re: python fix. Thanks for the catch Peter. Another example of why we need more of these tests in CI. I recall that these have been broken for a long time in the nightlies, but my assumption was that the simulation was broken...

@prckent
Copy link
Contributor

prckent commented Dec 27, 2024

Q. Does short-diamondC_1x1x1_pp-vmc-estimator-energydensity-cell-batched-4-4-check work now? (link to recent nightly failure) i.e. The batched version? The labels are different between the legacy and batched cases. Why does this difference exist?

@PDoakORNL
Copy link
Contributor Author

This has no effect on the batched test. At least one more PR incoming for batched energydensity.

@ye-luo
Copy link
Contributor

ye-luo commented Dec 27, 2024

Test this please

@prckent
Copy link
Contributor

prckent commented Dec 30, 2024

After rerunning the failed sulfur CUDA driver tests passed. Will merge based on Ye's prior approval + easy to iterate further updates.

@prckent prckent merged commit 5398c31 into QMCPACK:develop Dec 30, 2024
39 of 41 checks passed
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.

3 participants