Skip to content

Commit 5c87fc1

Browse files
author
Ralph Castain
committed
Update the mpirun man page to accurately reflect the use of -host
Signed-off-by: Ralph Castain <[email protected]>
1 parent 6a092a4 commit 5c87fc1

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

orte/tools/orterun/orterun.1in

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.\" -*- nroff -*-
22
.\" Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
33
.\" Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
4+
.\" Copyright (c) 2017 Intel, Inc. All rights reserved.
45
.\" $COPYRIGHT$
56
.\"
67
.\" Man page for ORTE's orterun command
@@ -766,10 +767,14 @@ Here, we list both the host names (aa, bb, and cc) but also how many "slots"
766767
there are for each. Slots indicate how many processes can potentially execute
767768
on a node. For best performance, the number of slots may be chosen to be the
768769
number of cores on the node or the number of processor sockets. If the hostfile
769-
does not provide slots information, a default of 1 is assumed.
770-
When running under resource managers (e.g., SLURM, Torque, etc.),
771-
Open MPI will obtain both the hostnames and the number of slots directly
772-
from the resource manger.
770+
does not provide slots information, Open MPI will attempt to discover the number
771+
of cores (or hwthreads, if the use-hwthreads-as-cpus option is set) and set the
772+
number of slots to that value. This default behavior also occurs when specifying
773+
the \fI-host\fP option with a single hostname. Thus, the command
774+
.
775+
.TP 4
776+
mpirun -H aa ./a.out
777+
launches a number of processes equal to the number of cores on node aa.
773778
.
774779
.PP
775780
.
@@ -786,6 +791,11 @@ mpirun -hostfile myhostfile -host dd ./a.out
786791
will find no hosts to run on and abort with an error.
787792
That is, the specified host dd is not in the specified hostfile.
788793
.
794+
.PP
795+
When running under resource managers (e.g., SLURM, Torque, etc.),
796+
Open MPI will obtain both the hostnames and the number of slots directly
797+
from the resource manger.
798+
.
789799
.SS Specifying Number of Processes
790800
.
791801
As we have just seen, the number of processes to run can be set using the

0 commit comments

Comments
 (0)