-
Notifications
You must be signed in to change notification settings - Fork 24
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
Segmentation fault upon creating the Context when adding both RMSD biased force and Torch Force #87
Comments
Could you share |
Also, could you add the imports to the script? So it is possible to run it. |
I've edited my original post to include the imports and the files |
Your script runs fine for me using the latest code for OpenMM and for this plugin. I notice your model uses the Try running your script inside |
I installed
The following text file contains the output from and the following text file contains the backtrace from running my script in |
That build is likely incompatible with packages from conda-forge. Try installing it like this instead.
|
I have created the environment:
The scirt works with problem. @JustinAiras try to create a new environment as indicated with the latest (22.9.0) |
I've run the exact set of commands you've provided using
|
@JustinAiras this might be a |
Thank you, installing with mamba solved my most immediate issue, and I now can run MD with a TorchForce and RMSD-biasing force without encountering a segmentation fault. I installed mamba into the base environment of a clean miniconda install, and created a new environment as follows:
Note that this also worked with a mambaforge installation, but differences in cluster permissions required me to use miniconda. Also note that
For my purposes (I only need to use the CPU platform), installing with the above command resolves my issue. However, I still get issues if I try to use the CUDA platform. Upon building the simulation, I get the following error:
Given similarities to how CUDA is installed on the cluster I use and those discussed in issue #88 (comment), I suspect the solution to this problem might lie somewhere there. |
This sounds like an issue with the CUDA toolkit version, see this issue from OpenMM: 3585 |
I've been using OpenMM 7.7.0 and OpenMM-Torch 0.8 successfully to run a PyTorch model, however, when I add an RMSD biasing force to the system as well as the TorchForce, I get a segmentation fault upon creating the Context. This RMSD biasing force has also worked independently without issue. My system setup is as follows:
As stated above, building the Context with Simulation results in a segmentation fault. I've tried implementing this in various other ways that have led to the same result. The following lists other ways of implementing these forces that I've tried:
system.addForce(ml_model)
U_rmsd_ml = CustomCVForce('scaler*ml_model + 0.5*k_rmsd*(rmsd - rmsd_0)^2')
scaler = 0
context = Context(system, integrator, platform)
All of this results in the same segmentation fault when the Context is built. Again, the model will run without issue when added independently to the system, as will the RMSD-biasing force. Any help with this issue would be greatly appreciated!
The files
struct.pdb
andmodel.pt
can be found in the following zipped folder: struct_model.zipThe text was updated successfully, but these errors were encountered: