Hello Brian and list

My confusing experiences with multiple MPI implementations
were fixed the day I decided to use full path names to the MPI compiler
wrappers (mpicc, mpif77, etc) at compile time,
and to the MPI job launcher (mpirun, mpiexec, and so on) at run time,
and to do this in a consistent fashion (using the tools from the same install to compile and to run the programs).

Most Linux distributions come with built in MPI implementations (often times more than one),
and so do commercial compilers and other tools.
You end up with a mess of different MPI versions on your "native" PATH,
as well as variety of bin, lib, and include directories containing different MPI stuff. The easy way around is to use full path names, particularly if you install yet another MPI implementation
from scratch.
Another way is to fix your PATH on your initialization files (.cshrc, etc) to point to your preferred implementation (put the appropriate bin directory ahead of everything else). Yet another is to install the "environment modules" package on your system and use it consistently.

My two cents.

Gus Correa

--
---------------------------------------------------------------------
Gustavo J. Ponce Correa, PhD - Email: g...@ldeo.columbia.edu
Lamont-Doherty Earth Observatory - Columbia University
P.O. Box 1000 [61 Route 9W] - Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------


Brian Harker wrote:

I built and installed both MPICH2 and openMPI from source, so no
distribution packages or anything.  MPICH2 has the modules located in
/usr/local/include, which I assume would be found (since its in my
path), were it not for specifying -I$OPENMPI_HOME/lib at compile time,
right?  I can't imagine that if you tell it where to look for the
correct modules, it would search through your path first before going
to where you tell it to go.  Or am I too optimistic?  Thanks again for
the input!

On Mon, Sep 22, 2008 at 8:58 AM, Jeff Squyres <jsquy...@cisco.com> wrote:
On Sep 22, 2008, at 10:10 AM, Brian Harker wrote:

Thanks for the reply...crap, $HOME/openmpi/lib does contains all the
various lilbmpi* files as well as mpi.mod,
That should be correct.

but still get the same
error at compile-time.  Yes, I made sure to specifically build openMPI
with ifort 10.1.012, and did run the --showme command right after
installation to make sure the wrapper compiler was using ifort as
well.
Ok, good.

Before posting to this mailing list, I did uninstall and re-install
openMPI several times to make sure I had a clean install.  Still no
luck.  :(
Ok.  Have you checked around your machine to ensure that there is no other
mpi.mod that the compiler is finding first?  E.g., in your MPICH2
installation?  Or is Open MPI installed by your distro, perchance?  You
might want to try a "rpm -qa | grep openmpi" (or whatever your distro's
equivalent is to check already-installed packages).

--
Jeff Squyres
Cisco Systems

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users





Reply via email to