Hi guys-

Still no dice.  The only mpi.mod files I have are the ones generated
from my compile and build from source (and they are where they should
be), so there's definitely no confusion amongst the modules.  And
specifying the fulls path to the correct mpi.mod module (like Gus
suggested with the -module option) gives no change.  I am running out
of ideas and patience, as I'm sure you all are too!  Perhaps openMPI
just doesn't play nice with my compiler suite and hardware
architecture...?  Thanks for all the input!

On Mon, Sep 22, 2008 at 11:27 AM, Gus Correa <g...@ldeo.columbia.edu> wrote:
> Hi Brian and list
>
> I read your original posting and Jeff's answers.
>
> Here on CentOS from Rocks Cluster I have a "native" OpenMPI, with a mpi.mod,
> compiled with gfortran.
> Note that I don't even have gfortran installed!
> This is besides the MPI versions (MPICH2 and OpenMPI)
> I installed from scratch using combinations of ifort and pgi with gcc.
> It may be that mpif90 is not picking the right mpi.mod, as Jeff suggested.
> Something like this may be part of your problem.
> A "locate mpi.mod" should show what your system has.
>
> Have you tried to force the directory where mpi.mod is searched for?
> Something like this:
>
> /full/path/to/openmpi/bin/mpif90  -module
>  /full/path/to/openmpi_mpi.mod_directory/   hello_f90.f90
>
> The ifort man pages has the "-module" syntax details.
>
> I hope this helps.
>
> 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:
>
>> Hi Gus-
>>
>> Thanks for the input.  I have been using full path names to both the
>> wrapper compilers and mpiexec from the first day I had two MPI
>> implementations on my machine, depending on if I want to use MPICH or
>> openMPI, but still the problem remains.  ARGGGGGG!
>>
>> On Mon, Sep 22, 2008 at 9:40 AM, Gus Correa <g...@ldeo.columbia.edu> wrote:
>>
>>>
>>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> users mailing list
>>> us...@open-mpi.org
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>>
>>>
>>
>>
>>
>>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>



-- 
Cheers,
Brian
brian.har...@gmail.com


"In science, there is only physics; all the rest is stamp-collecting."
 -Ernest Rutherford

Reply via email to