Thanks Dimitri and Jeff for the output,
I managed build the mpi and run the examples in f77 and f90 doing the guideline.
However the only problem is I was logged as Root.
When I compile the examples with mpif90 or mpif77 as common user, it
keeps pointing to the old installation of mpi that does not use the
fortran compiler.
(/home/amscosta/OpenFOAM/ThirdParty-1.7.x/platforms/linuxGcc/openmpi-1.4.1)
How can I make to point to the new installed version in
/opt/openmpi-1.4.3, when calling mpif90 or mpif77 as a common user ?
Alex
On Wed, Jun 22, 2011 at 1:49 PM, Jeff Squyres wrote:
> Dimitry is correct -- if OMPI's configure can find a working C++ and Fortran
> compiler, it'll build C++ / Fortran support. Yours was not, indicating that:
>
> a) you got a binary distribution from someone who didn't include C++ /
> Fortran support, or
>
> b) when you built/installed Open MPI, it couldn't find a working C++ /
> Fortran compiler, so it skipped building support for them.
>
>
>
> On Jun 22, 2011, at 12:05 PM, Dmitry N. Mikushin wrote:
>
>> Here's mine produced from default compilation:
>>
>> Package: Open MPI marcusmae@T61p Distribution
>> Open MPI: 1.4.4rc2
>> Open MPI SVN revision: r24683
>> Open MPI release date: May 05, 2011
>> Open RTE: 1.4.4rc2
>> Open RTE SVN revision: r24683
>> Open RTE release date: May 05, 2011
>> OPAL: 1.4.4rc2
>> OPAL SVN revision: r24683
>> OPAL release date: May 05, 2011
>> Ident string: 1.4.4rc2
>> Prefix: /opt/openmpi_gcc-1.4.4
>> Configured architecture: x86_64-unknown-linux-gnu
>> Configure host: T61p
>> Configured by: marcusmae
>> Configured on: Tue May 24 18:39:21 MSD 2011
>> Configure host: T61p
>> Built by: marcusmae
>> Built on: Tue May 24 18:46:52 MSD 2011
>> Built host: T61p
>> C bindings: yes
>> C++ bindings: yes
>> Fortran77 bindings: yes (all)
>> Fortran90 bindings: yes
>> Fortran90 bindings size: small
>> C compiler: gcc
>> C compiler absolute: /usr/bin/gcc
>> C++ compiler: g++
>> C++ compiler absolute: /usr/bin/g++
>> Fortran77 compiler: gfortran
>> Fortran77 compiler abs: /usr/bin/gfortran
>> Fortran90 compiler: gfortran
>> Fortran90 compiler abs: /usr/bin/gfortran
>>
>> gfortran version is:
>>
>> gcc version 4.6.0 20110530 (Red Hat 4.6.0-9) (GCC)
>>
>> How do you run ./configure? Maybe try "./configure
>> FC=/usr/bin/gfortran" ? It should really really work out of box
>> though. Configure scripts usually cook some simple test apps and run
>> them to check if compiler works properly. So, your ./configure output
>> may help to understand more.
>>
>> - D.
>>
>> 2011/6/22 Alexandre Souza :
>>> Hi Dimitri,
>>> Thanks for the reply.
>>> I have openmpi installed before for another application in :
>>> /home/amscosta/OpenFOAM/ThirdParty-1.7.x/platforms/linuxGcc/openmpi-1.4.1
>>> I installed a new version in /opt/openmpi-1.4.3.
>>> I reproduce some output from the screen :
>>> amscosta@amscosta-desktop:/opt/openmpi-1.4.3/bin$ ompi_info
>>> Package: Open MPI amscosta@amscosta-desktop Distribution
>>> Open MPI: 1.4.1
>>> Open MPI SVN revision: r22421
>>> Open MPI release date: Jan 14, 2010
>>> Open RTE: 1.4.1
>>> Open RTE SVN revision: r22421
>>> Open RTE release date: Jan 14, 2010
>>> OPAL: 1.4.1
>>> OPAL SVN revision: r22421
>>> OPAL release date: Jan 14, 2010
>>> Ident string: 1.4.1
>>> Prefix:
>>> /home/amscosta/OpenFOAM/ThirdParty-1.7.x/platforms/linuxGcc/openmpi-1.4.1
>>> Configured architecture: i686-pc-linux-gnu
>>> Configure host: amscosta-desktop
>>> Configured by: amscosta
>>> Configured on: Wed May 18 11:10:14 BRT 2011
>>> Configure host: amscosta-desktop
>>> Built by: amscosta
>>> Built on: Wed May 18 11:16:21 BRT 2011
>>> Built host: amscosta-desktop
>>> C bindings: yes
>>> C++ bindings: no
>>> Fortran77 bindings: no
>>> Fortran90 bindings: no
>>> Fortran90 bindings size: na
>>>