Skip to content

Commit

Permalink
Added oversubscribe option to mpirun so we can run with many replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello committed Oct 3, 2024
1 parent 03f7b1f commit b6abbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlumedToHTML/PlumedToHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_plumed( executible, filename, header=[], printjson=False, jsondir="./"
ifile.close()
cmd = [executible, 'driver', '--plumed', plumed_file, '--natoms', str(natoms), '--parse-only', '--kt', '2.49']
# Add everything to ensure we can run with replicas if needs be
if int(nreplicas)>1 : cmd = ['mpirun', '-np', str(nreplicas)] + cmd + ['--multi', str(nreplicas)]
if int(nreplicas)>1 : cmd = ['mpirun', '--oversubscribe', '-np', str(nreplicas)] + cmd + ['--multi', str(nreplicas)]
if printjson :
plumed_file = os.path.basename(filename)
# Add the shortcutfile output if the user has asked for it
Expand Down

0 comments on commit b6abbba

Please sign in to comment.