Q-Logic IB6054601-00 D 用户手册

下载
页码 122
3 – Using InfiniPath MPI
InfiniPath MPI Details
IB6054601-00 D
3-13
Q
LD_LIBRARY_PATH, 
and other environment variables for the node programs 
through the use of the 
-rcfile
 option of 
mpirun:
mpirun -np n -m mpihosts -rcfile mpirunrc program
In the absence of this option, 
mpirun
 checks to see if a file called 
$HOME/.mpirunrc 
exists in the user's home directory. In either case, the file is 
sourced by the shell on each node at time of startup of the node program.
The .
mpirunrc
 should not contain any interactive commands. It may contain 
commands that output on 
stdout
 or 
stderr
.
When you do not specify an 
mpirunrc
 file, either through the option or the default 
~/.
mpirunrc
, the environment on each node is whatever it would be for the user’s 
login via 
ssh
, unless you are using MPD. (See 
.)
There is a global options file that can be used for 
mpirun
 arguments. The default 
location of this file is:
/opt/infinipath/etc/mpirun.defaults
You can use an alternate file by setting the environment variable 
$PSC_MPIRUN_DEFAULTS_PATH. See the mpirun man page for more 
information.
3.5.8.1
Environment for Multiple Versions of InfiniPath or MPI
The variable INFINIPATH_ROOT sets a root prefix for all Infinipath-related paths. 
It is used by mpirun to try to find the mpirun-ipath-ssh executable, and it is 
also used to set up LD_LIBRARY_PATH for new programs. This allows multiple 
versions of the InfiniPath software releases to be installed on some or all nodes, as 
well as having InfiniPath MPI and other version(s) of MPI installed at the same time. 
It may be set in the environment, in mpirun.defaults, or in an rcfile (such 
as .mpirunrc, .bashrc or .cshrc) that will be invoked on remote nodes.
If you have used the --prefix argument with the rpm command to change the 
root prefix for the InfiniPath installation, then set INFINIPATH_ROOT to the same 
value.
If INFINIPATH_ROOT is not set, the normal PATH is used unless mpirun is invoked 
with a full pathname.
NOTE:
mpirun-ssh
 was renamed mpirun-ipath-ssh so as to avoid name 
collisions with other MPI implementations.