What this means is that you need to set your LD_LIBRARY_PATH on all the
nodes in your LAM universe. You need to ensure that it is set *before*
you run lamboot (i.e., edit your "dot" files to include setting the
LD_LIBRARY_PATH to $prefix/lib, where $prefix is the directory where you
installed LAM).
See the "booting LAM" section of the FAQ if you're not sure which "dot"
file to edit, the "How do I add the LAM executables to my $PATH?" question
in particular.
On Fri, 25 Jun 2004, Pushkar Pradhan wrote:
> Hi,
> I'm not able to run a simple helloworld program that I used to with mpich.
> So I suspect that the lam installation may not have been correct.
> This program just sends an int from PE 0 to PE 1 and prints helloworld.
>
> Compiling and running:
> mpicc -o helloworld helloworld.c
> lamboot -v $PBS_NODEFILE
> mpirun -np 2 helloworld
>
> I've pasted the error I got, it's looking for liblamf77mpi.so.0 which it's
> not able to find, I verified the path is in the LD_LIBRARY_PATH. (Why is it
> looking for the fortran stuff!).
> laminfo reports that ROMIO support is there.
>
> ERROR:
> n-1<20620> ssi:boot:base:linear: booting n0 (Empire-03-08)
> n-1<20620> ssi:boot:base:linear: booting n1 (Empire-03-07)
> n-1<20620> ssi:boot:base:linear: finished
> /rstc/user1/erc/pushkar/mpi-code/helloworld: error while loading shared
> libraries: liblamf77mpi.so.0: cannot
> open shared object file: No such file or directory
> ----------------------------------------------------------------------------
> -
> It seems that [at least] one of the processes that was started with
> mpirun did not invoke MPI_INIT before quitting (it is possible that
> more than one process did not invoke MPI_INIT -- mpirun was only
> notified of the first one, which was on node n0).
>
> mpirun can *only* be used with MPI programs (i.e., programs that
> invoke MPI_INIT and MPI_FINALIZE). You can use the "lamexec" program
> to run non-MPI programs over the lambooted nodes.
> ----------------------------------------------------------------------------
> -
>
> Pushkar
>
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|