On Tue, Jan 16, 2007 at 05:22:35PM -0800, Brian Budge wrote:
> Hi all -
Hi!
> 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: libSGUL.so: cannot open shared
> object file: No such file or directory
> >mpirun -np 1 -host host-1 ldd myprogram
>
> libSGUL.so => not found
> libOpenMesh_Core.so => 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
ipc654
adi_at_ipc654:~$ mpirun -np 1 -host amun3 echo $HOSTNAME
ipc654
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
HTH
--
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany
private: http://adi.thur.de
|