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

Fix a race condition by explicitly coping Torch forces #16

Merged
merged 3 commits into from
Aug 6, 2020

Conversation

raimis
Copy link
Contributor

@raimis raimis commented Aug 5, 2020

Fix #13

@peastman
Copy link
Member

peastman commented Aug 5, 2020

That looks great, and it fixes the problem for me to. If you mark this as no longer a draft I'll merge it.

@raimis raimis marked this pull request as ready for review August 6, 2020 09:58
@raimis
Copy link
Contributor Author

raimis commented Aug 6, 2020

Ideally, I should make a test, but added just a comment to keep that Tensor::clone from being optimised out.

@peastman peastman merged commit 27e845c into openmm:master Aug 6, 2020
@peastman
Copy link
Member

peastman commented Aug 6, 2020

Thanks so much for tracking this down!

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.

Multiple simulations on the same GPU are interfering with each other!
2 participants