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

writing plotfiles can fail when running test suite in parallel #807

Open
BenWibking opened this issue Dec 6, 2024 · 1 comment
Open
Assignees
Labels
bug: wrong answer/failure/crash Something isn't working

Comments

@BenWibking
Copy link
Collaborator

BenWibking commented Dec 6, 2024

Describe the bug
Outputs from plotfiles can collide when running them simultaneously with ctest -jN with N > 1.

AMReX is not designed to write outputs from multiple simulations in the same directory. In practice, however, this only seems to be an issue on parallel filesystems where metadata operations are slow.

The easiest fix is to set a unique prefix for each test problem in its input file, e.g.:

# default is "plt"
plotfile_prefix = mytest_plt

# default is "chk"
checkpoint_prefix = mytest_chk

To Reproduce
Steps to reproduce the behavior:

  1. Run the test suite on a Lustre filesystem
  2. See test failures due to std::rename failing.

Additional context
This seems to happen on Gadi.

@BenWibking BenWibking added the bug: wrong answer/failure/crash Something isn't working label Dec 6, 2024
@BenWibking BenWibking changed the title add prefixes to plotfiles when running test suite writing plotfiles can fail when running test suite in parallel Dec 6, 2024
@chongchonghe
Copy link
Contributor

I'm happy to take on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: wrong answer/failure/crash Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants