Replies: 5 comments
-
I believe you can just override the gromacs.mdrun.driver = 'mpiexec -np 8 gmx_mpi' and then you can call |
Beta Was this translation helpful? Give feedback.
-
@whitead Thanks for the reply! I got the error described above right after importing the package and after that, I only had the following modules:
As you can see, a lot of modules are missing. Therefore, specifying the attribute via |
Beta Was this translation helpful? Give feedback.
-
@wehs7661 In your .gromacswrapper.cfg file, add a line
|
Beta Was this translation helpful? Give feedback.
-
Hi @hgandhi2411 , thanks a lot for the reply! I've changed my
I've also tried to set |
Beta Was this translation helpful? Give feedback.
-
I don't have an immediate answer. But you can try to get more debugging output right from the start by setting the environment variable export GW_START_LOGGING=1
python and then import gromacs Perhaps that gives a hint what happens during the gromacs tool discovery process. Personally, I haven't used GW in the context that you describe so I am not sure if we ever tested setting driver to GromacsWrapper/gromacs/core.py Line 617 in 017b10a driver must be a single callable executable. You could perhaps work around this limitation by creating an executable shell script mpirun_gmx_mpi
#!/bin/bash
mpirun -n 1 gmx_mpi $* that just runs these two commands with all arguments passed to It's not very flexible or pretty but perhaps it's a start. Other solutions are welcome! |
Beta Was this translation helpful? Give feedback.
-
I was trying to use Gromacs wrapper on a supercomputer node on Bridges-2. On the login node, where
mpirun
is not required, Gromacs wrapper worked just fine. It was just that the GROMACS commands were decorated with the suffix_mpi
. (For example, instead of usinggromacs.editconf
, I had to usegromacs.editconf_mpi
).However, I found that on an interactive node, where
mpirun -np xx
is required when launch GROMACS commands, I had the following error when importinggromacs
in a Python console:This is the same error I would get if I use
gmx_mpi
instead ofmpirun -np xx gmx_mpi
on the interactive node. I guess the problem was that Gromacs wrapper was not aware of the MPI I was using, but I'm not sure how to deal with this problem.In my case, I was trying to use commands of MPI-enabled (CPU version) GROMACS 2020-4 via Gromacs wrapper. To enable
mpirun
, I had to executemodule load openmpi/3.1.6-gcc10.2.0
. I wonder if it is possible to use GROMACS wrapper in general (not just MDrunner) withmpirun
. Or did I miss something in the documentation? I'm new to Gromacs wrapper and I'm sorry if this is a naive question.Beta Was this translation helpful? Give feedback.
All reactions