mpirun only does this when it is using the "prefix" functionality,
which is activated in one of a few ways:
- you use the absolute pathname to mpirun
- you use the "--prefix" option to mpirun
- you configured OMPI with the --enable-mpirun-prefix-by-default option
The intent for this functional
It seems that mpirun adds /usr/lib64 at the beginning of the
LD_LIBRARY_PATH environment variable (/usr/lib64 usually corresponds to
/usr/lib on non-amd64 systems):
$ env | grep LIB
LD_LIBRARY_PATH=/home/ingo/opt/lib:/home/ingo/opt32/lib:/home/ingo/opt/gcc/lib64
$ mpirun env | grep LIB
LD_LIBRARY