GROMACS version: 2022.4
GROMACS modification: No
I have adopted the following steps to obtain xxx.xtc while running Gromacs on GPU,
-
obtain the xxx.tpr without energygrps in npt-nopr-md.mdp through “gmx grompp -f npt-nopr-md.mdp -c npt-pr.gro -p fws.top -o npt-nopr.tpr”.
-
run the obtained npt-nopr.tpr on GPU through “gmx mdrun -deffnm npt-nopr -v -nb gpu”.
-
obtain the xxx.tpr with energygrps in npt-nopr-md.mdp through “ggmx grompp -f npt-nopr-md.mdp -c npt-pr.gro -p fws.top -o npt-nopr-new.tpr”.
-
rerun the npt-nopr.trr (running on GPU) obtained in the second step together with npt-nopr-new.tpr obtained in the third step through “gmx mdrun -s npt-nopr-new.tpr -rerun npt-nopr.trr -nb cpu”.
-
obtain the xxx.xtc through “gmx trjconv -f traj.trr -s npt-nopr-new.tpr -o npt-nopr.xtc -pbc nojump -ur compact -center”.
The above five steps are the most answers in terms of running Gromacs on GPU. However, I find the simulation results (i.e., the RMSD) obtained by the abovementioned procedures are different from those obtained by running Gromacs on CPU. And my questions are,
-
Are there any errors in the five steps mentioned above?
-
I found that when I add another input parameter in the fourth step, i.e., “gmx mdrun -s npt-nopr-new.tpr -e npt-nopr.edr -rerun npt-nopr.trr -nb cpu”, the RMSD curve obtained by GPU is much similar to that running on CPU. However, I do not know whether this modification is correct. (npt-nopr.edr is obtained in step 2).
Hope someone can answer these two questions. Thanks a lot.