Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Adrian Knoth (adi_at_[hidden])
Date: 2007-01-17 03:31:52

On Tue, Jan 16, 2007 at 05:22:35PM -0800, Brian Budge wrote:

> Hi all -

> If I run from host-0:
> > mpirun -np 4 -host host-0 myprogram
> I have no problems, but if I run
> >mpirun -np 4 -host host-1 myprogram
> error while loading shared libraries: cannot open shared
> object file: No such file or directory

> >mpirun -np 1 -host host-1 ldd myprogram
> => not found
> => not found

Obviously, you'll need these libs on host-1. Even more, they need
to be found in a system library dir (e.g. /usr/lib) or somewhere
inside LD_LIBRARY_PATH. I guess you already know that.

> If I run the following, however, I see that my LD_LIBRARY_PATH is correct:
> > mpirun -np 1 -host burn-0 echo $LD_LIBRARY_PATH

The variable is expanded on the calling host:

adi_at_ipc654:~$ echo $HOSTNAME
adi_at_ipc654:~$ mpirun -np 1 -host amun3 echo $HOSTNAME

In other words: you're echoing your local LD_LIBRARY_PATH. If this
should be the same on host-1, either set it in your login scripts
(on host-1) or export it with -x:

host-0:~$ mpirun -x LD_LIBRARY_PATH -host host-1 your_prog


Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany