1
1
Finished adding and pruning all the the Options.

Cleaned up a bunch of man syntax, so it should be 'more' readable (making the
assumption that man source is ever readable :p).

I am moving on to the "description" and "see also" sections next.

This commit was SVN r9077.
Этот коммит содержится в:
Josh Hursey 2006-02-16 23:38:03 +00:00
родитель 1740ab1209
Коммит 2938545220

Просмотреть файл

@ -1,231 +1,222 @@
.TH ORTERUN 1 "" "Open MPI" "OPEN MPI COMMANDS" .\"
.\" Man page for ORTE's orterun process
.\"
.\" .TH name section center-footer left-footer center-header
.TH ORTERUN 1 "February 2006" "Open MPI" "OPEN MPI COMMANDS"
.\" **************************
.\" Name Section
.\" **************************
.SH NAME .SH NAME
orterun, mpirun, mpiexec \- Execute serial and parallel jobs in Open .
MPI. Note that orterun, mpirun, mpiexec \- Execute serial and parallel jobs in Open MPI.
.B Note:
.IR mpirun , .IR mpirun ,
.IR mpiexec , .IR mpiexec ,
and and
.I orterun .I orterun
are all exact synonyms for each other. Using any of the names will are all exact synonyms for each other. Using any of the names will
result in exactly identical behavior. result in exactly identical behavior.
.SH SYNTAX .
.hy 0 .\" **************************
.HP .\" Synopsis Section
.na .\" **************************
mpirun .SH SYNOPSIS
[-fhvO] .
[-c <#> | -np <#>] .B mpirun
[-D | -wd <dir>] .R [ options ]
[-ger | -nger] .B <program>
[-sigs | -nsigs] .R [ <args> ]
[-ssi <key> <value>] .
[-nw | -w] .\" **************************
[-nx] .\" Quick Summary Section
[-pty | -npty] .\" **************************
[-s <node>]
[-t | -toff | -ton]
[-tv]
[-x VAR1[=VALUE1][,VAR2[=VALUE2],...]]
[[-p <prefix_str>] [-sa | -sf]]
[<where>]
<program> [-- <args>]
.PP
.SH QUICK SUMMARY .SH QUICK SUMMARY
If you are simply looking for how to run an MPI application, you If you are simply looking for how to run an MPI application, you
probably want to use the following command line: probably want to use the following command line:
.sp
.RS \fBshell$\fP mpirun -np 4 my_mpi_application
shell$ mpirun -np 4 my_mpi_application
.RE This will run 4 copies of \fImy_mpi_application\fR in your current run-time
.PP environment (if running under a supported resource manager, Open MPI's
This will run 4 copies of \fIorterun\fR will usually automatically use the corresponding resource manager
.I my_mpi_application process starter, as opposed to, for example, \fIrsh\fR or \fIssh\fR ),
in your current run-time environment (if running under a supported
resource manager, Open MPI's
.I orterun
will usually automatically use the corresponding resource manager
process starter, as opposed to, for example,
.I rsh
or
.IR ssh ),
scheduling (by default) in a round-robin fashion by CPU slot. See the scheduling (by default) in a round-robin fashion by CPU slot. See the
rest of this page for more details. rest of this page for more details.
.
.\" **************************
.\" Options Section
.\" **************************
.SH OPTIONS .SH OPTIONS
There are two forms of the .
.IR mpirun
command -- one for programs (i.e., SPMD-style applications), and one
for application schemas (see appschema(5)). Both forms of
.IR mpirun
use the following options by default:
.I \-nger
.IR \-w .
These may each be overriden by their counterpart options, described
below.
.PP
Additionally,
.I mpirun .I mpirun
will send the name of the directory where it was invoked on the local will send the name of the directory where it was invoked on the local
node to each of the remote nodes, and attempt to change to that node to each of the remote nodes, and attempt to change to that
directory. See the "Current Working Directory" section, below. directory. See the "Current Working Directory" section, below.
.\"
.\" Start options listing
.\" Indent 10 chacters from start of first column to start of second column
.TP 10 .TP 10
.B -c <#> .B -aborted \fR<#>\fP
Synonym for Set the maximum number of aborted processes to display.
.I \-np .
(see below). .
.TP .TP
.B -D .B --app \fR<appfile>\fP
Use the executable program location as the current working directory Provide an appfile, ignoring all other command line options.
for created processes. The current working directory of the created .
processes will be set before the user's program is invoked. This .
option is mutually exclusive with
.IR \-wd .
.TP .TP
.B -f .B -bynode
Do not configure standard I/O file descriptors - use defaults. Allocate (map) the processes by node in a round-robin scheme.
.
.
.TP .TP
.B -h .B -byslot
Print useful information on this command. Allocate (map) the processes by slot in a round-robin scheme. This is the
default.
.
.
.TP .TP
.B -ger .B -c \fR<#>\fP
Enable GER (Guaranteed Envelope Resources) communication protocol Synonym for \fI-np\fP (see below).
and error reporting. See MPI(7) for a description of GER. This .
option is mutually exclusive with .
.IR \-nger .
.TP .TP
.B -nger .B -d, --debug-devel
Disable GER (Guaranteed Envelope Resources). This option is mutually Enable debugging og OpenRTE
exclusive with .
.IR \-ger . .
.TP .TP
.B -nsigs .B --debug
Do not have LAM catch signals in the user application. This is the Invoke the user-level debugger indicated by the \fIorte_base_user_debugger\fP
default, and is mutually exclusive with MCA parameter.
.IR \-sigs . .
.
.TP .TP
.B -np <#> .B --debug-daemons
Enable debugging of any OpenRTE daemons used by this application.
.
.
.TP
.B --debug-daemons-file
Enable debugging of any OpenRTE daemons used by this application, storing
output in files.
.
.
.TP
.B --debugger
Sequence of debuggers to search for when \fI--debug\fP is used.
.
.
.TP
.B -h, --help
Display help for this command
.
.
.TP
.B -H \fR<host1,host2,...,hostN>\fP
Synonym for \fI-host\fP (see below).
.
.
.TP
.B -host \fR<host1,host2,...,hostN>\fP
List of hosts on which to invoke processes.
.
.
.TP
.B -hostfile \fR<hostfile>\fP
Provide a hostfile to use.
JJH - Should have man page for how to format a hostfile properly.
.
.
.TP
.B -machinefile \fR<machinefile>\fP
Synonym for \fI-hostfile\fP (see above).
.
.
.TP
.B -mca <key> <value>
Send arguments to various MCA modules. See the "MCA" section, below.
.
.
.TP
.B -n \fR<#>\fP
Synonym for \fI-np\fP (see below).
.
.
.TP
.B --no-daemonize
Do not detach OpenRTE daemons used by this application.
.
.
.TP
.B -np \fR<#>\fP
Run this many copies of the program on the given nodes. This option Run this many copies of the program on the given nodes. This option
indicates that the specified file is an executable program and not an indicates that the specified file is an executable program and not an
application schema. If no nodes are specified, all LAM nodes are application schema.
considered for scheduling; LAM will schedule the programs in a .
round-robin fashion, "wrapping around" (and scheduling multiple copies .
on a single node) if necessary.
.TP
.B -npty
Disable pseudo-tty support. Unless you are having problems with
pseudo-tty support, you probably do not need this option. Mutually
exlclusive with -pty.
.TP .TP
.B -nw .B -nw
Do not wait for all processes to complete before exiting Launch the processes and do not wair for their completion. orterun will
.IR mpirun . complete as soon as successful launch occurs.
This option is mutually exclusive with .
.IR \-w . .
.TP .TP
.B -nx .B -path \fR<path>\fP
Do not automatically export LAM_MPI_*, LAM_IMPI_*, or IMPI_* PATH to be used to look for executables to start processes.
environment variables to the remote nodes. .
.TP .
.B -O
Multicomputer is homogeneous. Do no data conversion when passing
messages. THIS FLAG IS NOW OBSOLETE.
.TP .TP
.B -pty .B --tmpdir \fR<dir>\fP
Enable pseudo-tty support. Among other things, this enabled Set the root for the session directory tree for orterun only.
line-buffered output (which is probably what you want). This is the .
default. Mutually exclusive with -npty. .
.TP
.B -s <node>
Load the program from this node. This option is not valid on the
command line if an application schema is specified.
.TP
.B -sigs
Have LAM catch signals in the user process. This options is mutually
exclusive with
.IR \-nsigs .
.TP
.B -ssi <key> <value>
Send arguments to various SSI modules. See the "SSI" section, below.
.TP
.B -t, -ton
Enable execution trace generation for all processes. Trace generation
will proceed with no further action. These options are mutually
exclusive with
.IR \-toff .
.TP
.B -toff
Enable execution trace generation for all processes. Trace generation
for message passing traffic will begin after processes collectively
call MPIL_Trace_on(2). Note that trace generation for datatypes and
communicators
.I will
proceed regardless of whether trace generation is enabled for messages
or not. This option is mutually exclusive with
.I \-t
and
.IR \-ton .
.TP .TP
.B -tv .B -tv
Launch processes under the TotalView Debugger. Launch processes under the TotalView Debugger.
Deprecated backwards compatibility flag. Synonym for \fI--debug\fP.
.
.
.TP .TP
.B -v .B --universe \fR<username@hostname:universe_name>\fP
Be verbose; report on important steps as they are done. For this application, set the universe name as:
username@hostname:universe_name
.
.
.TP .TP
.B -w .B -v, --verbose
Wait for all applications to exit before Be verbose
.IR mpirun .
exits. .
.TP .TP
.B -wd <dir> .B -wd \fR<dir>\fP
Change to the directory <dir> before the user's program executes. Change to the directory <dir> before the user's program executes.
Note that if the Note that if the \fI-wd\fP option appears both on the command line and in an
.I -wd application schema, the schema will take precendence over the command line.
option appears both on the command line and in an application schema, .
the schema will take precendence over the command line. This option .
is mutually exclusive with .TP
.IR \-D . .B -x \fR<env>\fP
.TP
.B -x
Export the specified environment variables to the remote nodes before Export the specified environment variables to the remote nodes before
executing the program. Existing environment variables can be executing the program. Existing environment variables can be
specified (see the Examples section, below), or new variable names specified (see the Examples section, below), or new variable names
specified with corresponding values. The parser for the specified with corresponding values. The parser for the \fI-x\fP
.I \-x
option is not very sophisticated; it does not even understand quoted option is not very sophisticated; it does not even understand quoted
values. Users are advised to set variables in the environment, and values. Users are advised to set variables in the environment, and
then use then use \fI-x\fP to export (not define) them.
.I \-x .
to export (not define) them. .
.TP
.B -sa
Display the exit status of all MPI processes irrespecive of whether
they fail or run successfully.
.TP
.B -sf
Display the exit status of all processes only if one of them fails.
.TP
.B -p <prefix_str>
Prefixes each process status line displayed by [-sa] and [-sf] by the
<prefix_str>.
.TP
.B <where>
A set of node and/or CPU identifiers indicating where to start
.BR <program> .
See bhost(5) for a description of the node and CPU identifiers.
.I mpirun
will schedule adjoining ranks in
.I MPI_COMM_WORLD
on the same node when CPU identifiers are used. For example, if LAM
was booted with a CPU count of 4 on n0 and a CPU count of 2 on n1 and
.B <where>
is C, ranks 0 through 3 will be placed on n0, and ranks 4 and 5 will
be placed on n1.
.TP .TP
.B <args> .B <args>
Pass these runtime arguments to every new process. These must always Pass these runtime arguments to every new process. These must always
be the last arguments to be the last arguments to \fImpirun\fP This option is not valid on the command
.IR mpirun . line if an application schema is specified.
This option is not valid on the command line if an application schema .
is specified. .\" **************************
.\" Description Section
.\" **************************
.SH DESCRIPTION .SH DESCRIPTION
One invocation of One invocation of
.I mpirun .I mpirun
@ -241,6 +232,9 @@ but it essentially contains multiple
command lines, less the command name itself. The ability to specify command lines, less the command name itself. The ability to specify
different options for different instantiations of a program is another different options for different instantiations of a program is another
reason to use an application schema. reason to use an application schema.
.
.
.
.SS Location Nomenclature .SS Location Nomenclature
As described above, As described above,
.I mpirun .I mpirun
@ -369,6 +363,9 @@ Hence, it is probably desirable to run one "worker" process on all
available CPUs, and run one extra process that will be the "manager": available CPUs, and run one extra process that will be the "manager":
.TP 4 .TP 4
mpirun c0 C manager-worker-program mpirun c0 C manager-worker-program
.
.
.
.SS Application Schema or Executable Program? .SS Application Schema or Executable Program?
To distinguish the two different forms, To distinguish the two different forms,
.I mpirun .I mpirun
@ -384,6 +381,9 @@ not <where>, then all available CPUs on all LAM nodes are used. If
<where> is given, but not \fI-c\fR, then one copy of the program is <where> is given, but not \fI-c\fR, then one copy of the program is
run on each node. run on each node.
.PP .PP
.
.
.
.SS Program Transfer .SS Program Transfer
By default, LAM searches for executable programs on the target node By default, LAM searches for executable programs on the target node
where a particular instantiation will run. If the file system is not where a particular instantiation will run. If the file system is not
@ -392,6 +392,9 @@ frequently recompiled, it can be convenient to have LAM transfer the
program from a source node (usually the local node) to each target program from a source node (usually the local node) to each target
node. The \fI-s\fR option specifies this behavior and identifies the node. The \fI-s\fR option specifies this behavior and identifies the
single source node. single source node.
.
.
.
.SS Locating Files .SS Locating Files
LAM looks for an executable program by searching the directories in LAM looks for an executable program by searching the directories in
the user's PATH environment variable as defined on the source node(s). the user's PATH environment variable as defined on the source node(s).
@ -403,6 +406,9 @@ LAM looks for an application schema in three directories: the local
directory, the value of the LAMAPPLDIR environment variable, and directory, the value of the LAMAPPLDIR environment variable, and
laminstalldir/boot, where "laminstalldir" is the directory where laminstalldir/boot, where "laminstalldir" is the directory where
LAM/MPI was installed. LAM/MPI was installed.
.
.
.
.SS Standard I/O .SS Standard I/O
LAM directs UNIX standard input to /dev/null on all remote nodes. On LAM directs UNIX standard input to /dev/null on all remote nodes. On
the local node that invoked the local node that invoked
@ -442,6 +448,9 @@ The
option avoids all the setup required to support standard I/O described option avoids all the setup required to support standard I/O described
above. Remote processes are completely directed to /dev/null and above. Remote processes are completely directed to /dev/null and
local processes inherit file descriptors from lamboot(1). local processes inherit file descriptors from lamboot(1).
.
.
.
.SS Pseudo-tty support .SS Pseudo-tty support
The The
.I \-pty .I \-pty
@ -452,6 +461,9 @@ This option can be disabled with the
.I \-npty .I \-npty
switch. switch.
.PP .PP
.
.
.
.SS Process Termination / Signal Handling .SS Process Termination / Signal Handling
During the run of an MPI application, if any rank dies abnormally During the run of an MPI application, if any rank dies abnormally
(either exiting before invoking (either exiting before invoking
@ -491,6 +503,9 @@ MPI application. This is somewhat redundant behavior since this is
now all handled by now all handled by
.IR mpirun , .IR mpirun ,
but it has been left for backwards compatability. but it has been left for backwards compatability.
.
.
.
.SS Process Exit Statuses .SS Process Exit Statuses
The The
.IR -sa , .IR -sa ,
@ -531,6 +546,9 @@ The default
is "mpirun:", but the is "mpirun:", but the
.I -p .I -p
option can be used override this string. option can be used override this string.
.
.
.
.SS Current Working Directory .SS Current Working Directory
The default behavior of mpirun has changed with respect to the The default behavior of mpirun has changed with respect to the
directory that processes will be started in. directory that processes will be started in.
@ -570,6 +588,9 @@ All directory changing occurs before the user's program is invoked; it
does not wait until does not wait until
.I MPI_INIT .I MPI_INIT
is called. is called.
.
.
.
.SS Process Environment .SS Process Environment
Processes in the MPI application inherit their environment from the Processes in the MPI application inherit their environment from the
LAM daemon upon the node on which they are running. The environment LAM daemon upon the node on which they are running. The environment
@ -583,6 +604,9 @@ or more of the user's shell-setup files before launching the LAM
daemon. When running dynamically linked applications which require daemon. When running dynamically linked applications which require
the LD_LIBRARY_PATH environment variable to be set, care must be taken the LD_LIBRARY_PATH environment variable to be set, care must be taken
to ensure that it is correctly set when booting the LAM. to ensure that it is correctly set when booting the LAM.
.
.
.
.SS Exported Environment Variables .SS Exported Environment Variables
All environment variables that are named in the form LAM_MPI_*, All environment variables that are named in the form LAM_MPI_*,
LAM_IMPI_*, or IMPI_* will automatically be exported to new processes LAM_IMPI_*, or IMPI_* will automatically be exported to new processes
@ -604,6 +628,9 @@ understand quoted values. Users are advised to set variables in the
environment and use environment and use
.I \-x .I \-x
to export them; not to define them. to export them; not to define them.
.
.
.
.SS Trace Generation .SS Trace Generation
Two switches control trace generation from processes running under LAM Two switches control trace generation from processes running under LAM
and both must be in the on position for traces to actually be and both must be in the on position for traces to actually be
@ -618,6 +645,9 @@ switch is off and calls to MPIL_Trace_on(2) in the application program
are ineffective. The \fI-t\fR option also turns on the second switch. are ineffective. The \fI-t\fR option also turns on the second switch.
The \fI-toff\fR option turns off the second switch. See The \fI-toff\fR option turns off the second switch. See
MPIL_Trace_on(2) and lamtrace(1) for more details. MPIL_Trace_on(2) and lamtrace(1) for more details.
.
.
.
.SS MPI Data Conversion .SS MPI Data Conversion
LAM's MPI library converts MPI messages from local representation to LAM's MPI library converts MPI messages from local representation to
LAM representation upon sending them and then back to local LAM representation upon sending them and then back to local
@ -632,6 +662,9 @@ determines whether a given MPI job is homogeneous or not. The
.I -O .I -O
flag will silently be accepted for backwards compatability, but it is flag will silently be accepted for backwards compatability, but it is
ignored. ignored.
.
.
.
.SS SSI (System Services Interface) .SS SSI (System Services Interface)
The The
.I -ssi .I -ssi
@ -721,6 +754,9 @@ other RPI's that were not the lamd RPI. As such,
.I -ssi rpi <value> .I -ssi rpi <value>
must be used to select the specific desired RPI (whether it is "lamd" must be used to select the specific desired RPI (whether it is "lamd"
or one of the other RPI's). or one of the other RPI's).
.
.
.
.SS Guaranteed Envelope Resources .SS Guaranteed Envelope Resources
By default, LAM will guarantee a minimum amount of message envelope By default, LAM will guarantee a minimum amount of message envelope
buffering to each MPI process pair and will impede or report an error buffering to each MPI process pair and will impede or report an error
@ -731,6 +767,10 @@ communication via the LAM daemon, a protocol is used. The \fI-nger\fR
option disables GER and the measures taken to support it. The minimum option disables GER and the measures taken to support it. The minimum
GER is configured by the system administrator when LAM is installed. GER is configured by the system administrator when LAM is installed.
See MPI(7) for more details. See MPI(7) for more details.
.
.\" **************************
.\" Examples Section
.\" **************************
.SH EXAMPLES .SH EXAMPLES
Be sure to also see the examples in the "Location Nomenclature" Be sure to also see the examples in the "Location Nomenclature"
section, above. section, above.
@ -775,6 +815,11 @@ Also disable pseudo-tty support, change directory to /work/output, and
export the DISPLAY variable to the new processes (perhaps export the DISPLAY variable to the new processes (perhaps
my_application will invoke an X application such as xv to display my_application will invoke an X application such as xv to display
output). output).
.
.\" **************************
.\" Diagnostics Section
.\" **************************
.
.SH DIAGNOSTICS .SH DIAGNOSTICS
.TP 4 .TP 4
mpirun: Exec format error mpirun: Exec format error
@ -796,6 +841,11 @@ on the given line in the file.
This error can occur in two cases. Either the named file cannot be This error can occur in two cases. Either the named file cannot be
located or it has been found but the user does not have sufficient located or it has been found but the user does not have sufficient
permissions to execute the program or read the application schema. permissions to execute the program or read the application schema.
.
.\" **************************
.\" Return Value Section
.\" **************************
.
.SH RETURN VALUE .SH RETURN VALUE
.I mpirun .I mpirun
returns 0 if all ranks started by returns 0 if all ranks started by
@ -815,5 +865,18 @@ However, note that if the
.I \-nw .I \-nw
switch is used, the return value from mpirun does not indicate the exit status switch is used, the return value from mpirun does not indicate the exit status
of the ranks. of the ranks.
.
.\" **************************
.\" See Also Section
.\" **************************
.
.SH SEE ALSO .SH SEE ALSO
bhost(5), lamexec(1), lamssi(7), lamssi_rpi(7), lamtrace(1), loadgo(1), MPIL_Trace_on(2), mpimsg(1), mpitask(1) bhost(5),
lamexec (1),
lamssi(7),
lamssi_rpi(7),
lamtrace(1),
loadgo(1),
MPIL_Trace_on(2),
mpimsg(1),
mpitask(1)