8000 [WIP] Add explicit deletion to contexts in ContextCache on empty by dotsdl · Pull Request #690 · choderalab/openmmtools · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Add explicit deletion to contexts in ContextCache on empty - #690

Open
dotsdl wants to merge 3 commits into
mainfrom
contextcache-empty
Open

dotsdl wants to merge 3 commits into
mainfrom
contextcache-empty

Conversation

@dotsdl
@dotsdl dotsdl commented Apr 20, 2023
Copy link
Copy Markdown
Member

Description

Note: this may not be sufficient; will need to investigate that it
actually succeeds in clearing contexts.

Todos

  • Implement feature / fix bug
  • Add tests
  • Update documentation as needed
  • Update changelog to summarize changes in behavior, enhancements, and bugfixes implemented in this PR

Status

  • Ready to go

Changelog message


dotsdl added 2 commits April 20, 2023 08:41
Note: this may not be sufficient; will need to investigate that it
actually succeeds in clearing contexts.
@codecov
codecov Bot commented Apr 20, 2023 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.44%. Comparing base (b379af3) to head (49f2e1d).
⚠️ Report is 46 commits behind head on main.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dotsdl
dotsdl commented Apr 22, 2023
Copy link
Copy Markdown
Member Author

This may not be finished yet; please do not merge.

@dotsdl dotsdl changed the title Add explicit deletion to contexts in ContextCache on empty [WIP] Add explicit deletion to contexts in ContextCache on empty Apr 22, 2023
@jchodera
Copy link
Copy Markdown
Member

This should address #688

@ijpulidos
ijpulidos commented May 25, 2023 •
Copy link
Copy Markdown
Contributor

We want to write tests that creates many context caches and make sure that the resources of the GPU don't get depleted (if we are emptying the context cache correctly). First we test this locally and then in the GPU CI.

We need GPU CI testing for this.

@ijpulidos
Copy link
Copy Markdown
Contributor

After the basic test we can also create a replica exchange sampler test where we create and destroy many repex samplers and check if the GPU resources are correctly handled.

Minimizers might be creating their own context. We can give it a pre-minimized structure or tell it to do only one minimization step (using the multistatesampler minimize method)

@jchodera
Copy link
Copy Markdown
Member

We also need a __del__ that calls empty().

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should there be an extra context cache clearing in multistatesampler.__del__? Ensure ContextCache deletes all Context objects when it cleans up

5 participants

0