-
Notifications
You must be signed in to change notification settings - Fork 19
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
Allow the BSS.FreeEnergy.Relative to run Gromacs process with a single MPI rank #313
Comments
Hello there, There currently isn't an exposed way to modify the run arguments as you can for a ...
freenrg = BSS.FreeEnergy.Relative(system, protocol, engine="GROMACS")
# Get the args to "gmx mdrun". Here we assume that they are all the same.
args = freenrg._runner.processes()[0].getArgs()
# Use a single MPI thread/rank.
args["-ntmpi"] = 1
# Set the arguments for all processes.
freenrg._update_run_args(args) Since (Be careful restricting threads with GROMACS since the behaviour, e.g. whether it runs, depends on how GROMACS was compiled and on what type of system you are running. I'm not sure the specific thread requirement for FEP with GROMACS (OMP or MPI threads) but I know, for example, that there can be issues restricting the number of threads for metadynamics simulations.) |
@lohedges Thank you for the reply. I wonder if there is a plan of adding one? |
Yes, I hope to make things more flexible in future. As I say, in general it's hard to know what options would be suitable for a particular build or environment. I plan on adding a sub-package where a user can set information related to their hardware resources, scheduler, etc, to make automatic setting of appropriate arguments easier. I also aim to add in @msuruzhon's optional config and extra arguments approach. |
@lohedges Thanks for the comment. I wonder if it is possible to have an interface similar to
Where the Arg provided here will simply be appended to the existing |
Yes, that would be a good approach at first. I'll aim to mirror the functionality from |
@lohedges Thank you for the explanation. |
Is your feature request related to a problem? Please describe.
I'm interested in changing something in Gromacs mdp generation and wish to test it with a simple system.
I bumped into the #305
Describe the solution you'd like
I wonder if I could do something to allow each window of BSS.FreeEnergy.Relative to be run with a single MPI rank
with interface
The text was updated successfully, but these errors were encountered: