引用回帖:
SYNOPSIS
Single Process Multiple Data (SPMD) Model:
mpirun [ options ] [ ]
Multiple Instruction Multiple Data (MIMD) Model:
mpirun [ global_options ]
[ local_options1 ] [ ] :
[ local_options2 ] [ ] :
... :
[ local_optionsN ] [ ]
Note that in both models, invoking mpirun via an absolute path name is
equivalent to specifying the --prefix option with a
lent to the directory where mpirun resides, minus its last subdirec-
tory. For example:
% /usr/local/bin/mpirun ...
is equivalent to
% mpirun --prefix /usr/local
QUICK SUMMARY
If you are simply looking for how to run an MPI application, you proba-
bly want to use a command line of the following form:
% mpirun [ -np X ] [ --hostfile ]
This will run X copies of in your current run-time environ-
ment (if running under a supported resource manager, Open MPI's mpirun
will usually automatically use the corresponding resource manager
process starter, as opposed to, for example, rsh or ssh, which require
the use of a hostfile, or will default to running all X copies on the
localhost), scheduling (by default) in a round-robin fashion by CPU
slot. See the rest of this page for more details.