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

Parallelization fails for jobs running simultaneously from same folder #97

Closed
timcallow opened this issue Nov 13, 2021 · 0 comments · Fixed by #99
Closed

Parallelization fails for jobs running simultaneously from same folder #97

timcallow opened this issue Nov 13, 2021 · 0 comments · Fixed by #99
Assignees
Labels
bug Something isn't working

Comments

@timcallow
Copy link
Contributor

atoMEC uses the joblib library for a simple parallelization over spin and l quantum numbers when diagonalizing the Hamiltonian. It is recommended in joblib to dump large arrays to a file which is then deleted after.

Currently in atoMEC this writing to file does not work when multiple simulations are performed simultaneously from the same directory (i.e. quite likely on on HPC), because the data file for a given run is overwritten by the data file for another run.

Simple fix will be just to randomize the name of the data file.

@timcallow timcallow added the bug Something isn't working label Nov 13, 2021
@timcallow timcallow self-assigned this Nov 13, 2021
@timcallow timcallow changed the title Parallelization bug Parallelization fails for jobs running simultaneously from same folder Nov 13, 2021
@timcallow timcallow linked a pull request Nov 14, 2021 that will close this issue
timcallow added a commit that referenced this issue Nov 15, 2021
Fix issue #97 (overwriting data storage folders with `joblib`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant