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

Add batched EnergyDensityEstimator short statistical integration test #5207

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

PDoakORNL
Copy link
Contributor

This adds an application level short test for the batched EnergyDensityEstimator

However on my system the test fails because after 250 blocks the paticle moves start moving out of the period cell. The legacy energy estimator doesn't check that the coordinate to cell mappings land in the grid, but I now bound check this access so the test fails. Even if i don't I segfault eventually because overflow writes are occurring.

These out of bounds particles are pretty rare but it seems certain at least on my test system that they will occur in a run the size of the short run.

This seems to point to a likely bug in the particle moves. I will explore further tomorrow.

This PR though make it possible to run the EnergyDensityEstimator with the full app which was actually impossible without the fix to the virtual write function.

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

Delete the items that do not apply

  • Bugfix
  • Testing changes (e.g. new unit/integration/performance tests)

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

dgx 2

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

@prckent
Copy link
Contributor

prckent commented Oct 29, 2024

Good catch. In the QMC simulation the particles are allowed to move anywhere, so any code looking to handle periodic images needs to do so and handle the out of bound case appropriately. Unless the fix is trivial, I suggest to just fix the batched code.

@prckent
Copy link
Contributor

prckent commented Oct 29, 2024

Would you like this merged? It would at least start appearing in the nightlies.

@prckent prckent changed the title Energy density app testing Add batched EnergyDensityEstimator short statistical integration test Oct 30, 2024
Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

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

LGTM

@prckent
Copy link
Contributor

prckent commented Oct 30, 2024

Test this please

@ye-luo ye-luo merged commit bf7dcbe into QMCPACK:develop Oct 30, 2024
40 of 41 checks passed
@ye-luo ye-luo deleted the energy_density_app_testing branch October 30, 2024 21:35
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