Parallel Programming Guide for HP-UX Systems

MPI
Running
Chapter 236
MPI_TMPDIR By default, HP MPI uses the /tmp directory to store temporary files needed
for its operations. MPI_TMPDIR is used to point to a different temporary directory. The
MPI_TMPDIR syntax is
directory
where
directory
specifies an existing directory used to store temporary files.
MPI_WORKDIR By default, HP MPI applications execute in the directory where they are
started. MPI_WORKDIR changes the execution directory. The MPI_WORKDIR syntax is shown
below:
directory
where
directory
specifies an existing directory where you want the application to execute.
TOTALVIEW When you use the TotalView debugger, HP MPI uses your PATH variable to
find TotalView. You can also set the absolute path and TotalView specific options in the
TOTALVIEW environment variable. This environment variable is used by mpirun.
setenv TOTALVIEW
/opt/totalview/bin/totalview
[
totalview_options
]
Runtime utility commands
HP MPI provides a set of utility commands to supplement the MPI library routines. These
commands are listed below and described in the following sections:
mpirun (mpirun.all)
This section also includes discussion of Appfiles, the Multipurpose daemon process, and
Generating multihost instrumentation profiles.
prun
mpiexec
mpijob
mpiclean
mpirun (mpirun.all) The HP MPI start-up provides the following advantages:
Provides support for shared libraries
The -e option enables environment variable settings to be specified on the command line
The HP MPI start-up mpirun requires that MPI be installed in the same directory on every
execution host. The default is the location from which mpirun is executed. This can be
overridden with the MPI_ROOT environment variable. We recommend setting the MPI_ROOT
environment variable prior to starting mpirun.