HP-MPI User's Guide (11th Edition)
Understanding HP-MPI
Running applications on HP-UX and Linux
Chapter 382
• Applications must be linked statically
• Start-up may be slower
• TotalView is unavailable to executables launched with mpirun.all
• Files will be copied to a temporary directory on target hosts
• The remote shell must accept stdin
mpirun.all is not available on HP-MPI for Linux or Windows.
mpiexec
The MPI-2 standard defines mpiexec as a simple method to start MPI
applications. It supports fewer features than mpirun, but it is portable.
mpiexec syntax has three formats:
• mpiexec offers arguments similar to a MPI_Comm_spawn call, with
arguments as shown in the following form:
mpiexec [-n maxprocs][-soft ranges][-host host][-arch
arch][-wdir dir][-path dirs][-file file]command-args
For example:
% $MPI_ROOT/bin/mpiexec -n 8 ./myprog.x 1 2 3
creates an 8 rank MPI job on the local host consisting of 8 copies of
the program myprog.x, each with the command line arguments 1, 2,
and 3.
• It also allows arguments like a MPI_Comm_spawn_multiple call, with
a colon separated list of arguments, where each component is like the
form above.
For example:
% $MPI_ROOT/bin/mpiexec -n 4 ./myprog.x : -host host2 -n \
4 /path/to/myprog.x
creates a MPI job with 4 ranks on the local host and 4 on host2.
• Finally, the third form allows the user to specify a file containing
lines of data like the arguments in the first form.
mpiexec [-configfile file]
For example:
% $MPI_ROOT/bin/mpiexec -configfile cfile