From 52d472c209054149975f891dfe6e9372ec1ebc51 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Dec 2014 20:30:35 +0000 Subject: [PATCH] using hostfile --- submit_mpi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit_mpi.py b/submit_mpi.py index 83c97175e..3a65ec440 100755 --- a/submit_mpi.py +++ b/submit_mpi.py @@ -24,7 +24,7 @@ def mpi_submit(nslave, args): args arguments to launch each job this usually includes the parameters of master_uri and parameters passed into submit """ - cmd = ' '.join(['mpirun -n %d -machinefile %s' % (nslave, args[0])] + args[1:]) + cmd = ' '.join(['mpirun -n %d --hostfile %s' % (nslave, args[0])] + args[1:]) print cmd subprocess.check_call(cmd, shell = True)