HP-MPI User's Guide (11th Edition)
Getting started
Getting started using HP-UX or Linux
Chapter 220
Getting started using HP-UX or Linux
Configuring your environment
Setting PATH
If you move the HP-MPI installation directory from its default location in
/opt/mpi for HP-UX, and /opt/hpmpi for Linux:
•Set the MPI_ROOT environment variable to point to the location where
MPI is installed.
•Add $MPI_ROOT/bin to PATH.
•Add $MPI_ROOT/share/man to MANPATH.
MPI must be installed in the same directory on every execution host.
Setting shell
By default, HP-MPI attempts to use ssh on Linux and remsh on HP-UX.
On Linux, we recommend that ssh users set
StrictHostKeyChecking=no in their ~/.ssh/config.
To use rsh on Linux instead, the following script needs to be run as root
on each node in the cluster:
% /opt/hpmpi/etc/mpi.remsh.default
Or, to use rsh on Linux, use the alternative method of manually
populating the files /etc/profile.d/hpmpi.csh and
/etc/profile.d/hpmpi.sh with the following settings respectively:
% setenv MPI_REMSH rsh
% export MPI_REMSH=rsh
On HP-UX, MPI_REMSH specifies a command other than the default
remsh to start remote processes. The mpirun, mpijob, and mpiclean
utilities support MPI_REMSH. For example, you can set the environment
variable to use a secure shell:
% setenv MPI_REMSH /bin/ssh