fixed small bug in mpi submission script
This commit is contained in:
parent
0ca7a63670
commit
1479e370f8
@ -35,7 +35,7 @@ def mpi_submit(nslave, worker_args):
|
|||||||
if args.hostfile is None:
|
if args.hostfile is None:
|
||||||
cmd = ' '.join(['mpirun -n %d' % (nslave)] + args.command + worker_args)
|
cmd = ' '.join(['mpirun -n %d' % (nslave)] + args.command + worker_args)
|
||||||
else:
|
else:
|
||||||
' '.join(['mpirun -n %d --hostfile %s' % (nslave, args.hostfile)] + args.command + worker_args)
|
cmd = ' '.join(['mpirun -n %d --hostfile %s' % (nslave, args.hostfile)] + args.command + worker_args)
|
||||||
print cmd
|
print cmd
|
||||||
subprocess.check_call(cmd, shell = True)
|
subprocess.check_call(cmd, shell = True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user