Open RenlingHu opened 4 months ago
Hey! I'll answer this since you used my inputs. Have you installed the necessary fork of AToM to run NNP? At this point I believe is the only option to run ATM with NNPs: https://github.com/compsciencelab/AToM-OpenMM
It is explained in the Readme from the benchmark.
EDIT: You'll also need nnpops and openmm-ml
Thanks for your reply! Yes, I have installed your AToM, nnpops and openmm-ml in my conda environment.
And I just tested the code, this error comes from:
simulation = Simulation(prmtop.topology, system, integrator,platform, properties)
.
This also means I didn't get errors when running through these codes:
from openmmml import MLPotential
nnp = MLPotential("ani2x")
nnp_atoms = list(map(int,lig1_atoms+lig2_atoms))
system = nnp.createMixedSystem(prmtop.topology, system, nnp_atoms, removeConstraints=False)
Do you have any other ideas about that?
Could you please try to run with an older OpenMM version? Are you using 8? Can you try with OpenMM 7.7? I belive it is due to some incompatability with the openmm-atmmetaforce-plugin
Thanks! It is due to some imcompatability with openmm-plugins.
I found the reason. When I checked it with python -c 'from simtk.openmm import *;print(pluginLoadedLibNames);print(Platform.getPluginLoadFailures())'
, I found that it was because the openmm-plugins library files could not be loaded. Mainly because some of my plugins were compiled from source code and others were installed by mamba. Their paths are different.
I solved this problem through ln -s
.
After the CUDA platform was detected, a new error appeared:
segmentation fault
This is an error about memory access, which still exists after I have enough available memory. Have you ever encountered this problem?
No, unfortunately we have never encountered a segmentation fault error with ATM calculations. Which GPU are you using? Take into account that NNP runs will take more VRAM than classical ones.
Hi, I recently tried to use this package to run ATM calculations based on the MM/NNP force field. The input comes from https://github.com/compsciencelab/ATM_benchmark/tree/main/ATM_With_NNPs/CDK2/complexes/CDK2_m01_m10. When I performed
rbfe_structprep.py CDK2_m01_m10_asyncre.cntl
, I get the following error. When I deleted "NNP_MODEL = 'ani2x'" and only used the MM force field, everything ran fine and could be called by the CUDA platform. I am struggling to solve this problem but have no idea about that. Looking forward to your kind reply, thanks.