LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-05-06 12:50:32


On Tue, 6 May 2003, Nicholas Henke wrote:

> I just installed myrinet on nodes 4 & 5 on brothel, and ran into a
> strange problem running mpirun. I configured lam using './configure
> --with-gm=/home/henken/gm' --prefix=/home/henken/local'. Lam compiled
> and installed just fine, lamboot & friends are all happy. When I try to
> 'mpirun' something, I get a 'cannot find libgm.0..' message. If I export
> LD_LIBRARY_PATH=/home/henken/gm/lib and use mpirun -x "LD_LIBRARY_PATH",
> the problem is solved, and I can run code all day long.
>
> I think the problem may stem from the fact that on the front end node
> /home -> /usr/home, but on the nodes it mounts frontend:/usr/home ->
> /home. Is there a way to get around this problem -- or should I just
> have installed the libs to /usr/lib and get on with my life ?

This is unfortunately not much of a LAM problem -- more of a shell/linker
problem.

A few suggestions:

1. Make libgm appear in the same place on all nodes. Here at IU, for
example, a user's home directory is always /u/<username>, regardless of
the unix flavor and/or what server their home directory is actually
mounted on. Hence, $HOME is the same everywhere. It's the same idea.

2. Use static linking. ;-)

3. If you end up using LD_LIBRARY_PATH to specify the location, lamboot
*after* you set it, and then the lamd's will have it in their environment
and you won't need to "-x LD_LIBRARY_PATH" in every mpirun.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/