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

Added tmpdir functionality for MDs, fixed calculator bug #395

Merged
merged 5 commits into from
Mar 28, 2022
Merged

Conversation

mgastegger
Copy link
Collaborator

  • hydra.run.dir can now be used to pass a temporary directory for MD simulations. File I/O will be carried out in this directory. Results will be copied to the specified simulation_dir once the simulation has finished and the temporary directory will be deleted.

  • Added a custom tmpdir resolver, which will create a temporary directory on the local filesystem using the tempfile package. This can be called e.g. as
    hydra.run.dir='${tmpdir:}'

  • Fixed a bug in the schnetpack.md.calculators.MDCalculator base class, which would cause memory leaks during a MD run due to accumulating computational graphs. Graph building can be toggled again by setting gradients_required=True if desired.

src/schnetpack/md/calculators/base_calculator.py Outdated Show resolved Hide resolved
src/schnetpack/md/cli.py Show resolved Hide resolved
@mgastegger mgastegger merged commit f363291 into dev Mar 28, 2022
@mgastegger mgastegger deleted the mg/md_fixes branch March 28, 2022 12:55
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.

2 participants