-
Notifications
You must be signed in to change notification settings - Fork 84
TensorNET with CUDA Graphs and LangevinMiddleIntegrator fails #220
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
Comments
Most likely, it is some memory corruption in |
@RaulPPelaez @peastman any ideas? |
I agree, it sounds like memory corruption. The choice of integrator shouldn't matter at all. Probably it's just perturbing the memory layout or something similar, which changes whether the corruption leads to a crash. Did you try the suggestions in the error message?
You could also try the CUDA compute sanitizer tool to check for errors. |
Can you try another integrator? I have a feeling its completely unrelated to LangevinMiddleIntegrator |
I will
As shown, |
I tried changing the order in your loop, but it seems to consistently fail only with LangevinMiddleIntegrator. |
It happens even you if run it alone. |
This is fixed in my machine by adding a syncrhonization after graph replay in OpenMM-Torch here: I am guessing the particular integrator tries to run something using forces/energies in another stream too soon, which is causing some race condition. |
@RaulPPelaez thank you for your effort! I confirm the issue is fixed. The fix will be released with OpenMM-Torch 1.4. |
TensorNET with CUDA Graphs and
LangevinMiddleIntegrator
fails, while it worksLangevinIntegrator
.Versions:
master
(openmm/openmm-torch@2270256)master
(fd83954) + Make OutputModel aware of CUDA graph capturing. #214The text was updated successfully, but these errors were encountered: