Alexandre, > 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 ?
If you need to switch between multiple working MPI implementations frequently (a common problem on public clusters or during local testing/benchmarking), scripts like mpi-selector can be very handy. First you register all possible variants with mpi-selector --register <name> <path_to_configs>, and then you can switch current with mpi-selector --set name (and restart shell). Technically, it does the same thing already mentioned - adding records to $PATH and LD_LIBRARY_PATH. Script is part of redhat distros (and is written by Jeff, I suppose), but you can easily rebuild its source rpm for your system or convert it with alien if you are on ubuntu (works for me). - D. 2011/6/22 Alexandre Souza <costam...@gmail.com>: > 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 <jsquy...@cisco.com> 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 <costam...@gmail.com>: >>>> 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 >>>> 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: none >>>> Fortran90 compiler abs: none >>>> C profiling: no >>>> C++ profiling: no >>>> Fortran77 profiling: no >>>> Fortran90 profiling: no >>>> C++ exceptions: no >>>> Thread support: posix (mpi: no, progress: no) >>>> Sparse Groups: no >>>> Internal debug support: no >>>> MPI parameter check: runtime >>>> Memory profiling support: no >>>> Memory debugging support: no >>>> libltdl support: yes >>>> Heterogeneous support: no >>>> mpirun default --prefix: no >>>> MPI I/O support: yes >>>> MPI_WTIME support: gettimeofday >>>> Symbol visibility support: yes >>>> ...... >>>> >>>> >>>> On Wed, Jun 22, 2011 at 12:34 PM, Dmitry N. Mikushin >>>> <maemar...@gmail.com> wrote: >>>>> Alexandre, >>>>> >>>>> Did you have a working Fortran compiler in system in time of OpenMPI >>>>> compilation? To my experience Fortran bindings are always compiled by >>>>> default. How did you configured it and have you noticed any messages >>>>> reg. Fortran support in configure output? >>>>> >>>>> - D. >>>>> >>>>> 2011/6/22 Alexandre Souza <costam...@gmail.com>: >>>>>> Dear Group, >>>>>> After compiling the openmpi source, the following message is displayed >>>>>> when trying to compile >>>>>> the hello program in fortran : >>>>>> amscosta@amscosta-desktop:~/openmpi-1.4.3/examples$ >>>>>> /opt/openmpi-1.4.3/bin/mpif90 -g hello_f90.f90 -o hello_f90 >>>>>> -------------------------------------------------------------------------- >>>>>> Unfortunately, this installation of Open MPI was not compiled with >>>>>> Fortran 90 support. As such, the mpif90 compiler is non-functional. >>>>>> -------------------------------------------------------------------------- >>>>>> Any clue how to solve it is very welcome. >>>>>> Thanks, >>>>>> Alex >>>>>> P.S. I am using a ubuntu box with gfortran >>>>>> _______________________________________________ >>>>>> 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 >>>> >>> >>> _______________________________________________ >>> users mailing list >>> us...@open-mpi.org >>> http://www.open-mpi.org/mailman/listinfo.cgi/users >> >> >> -- >> Jeff Squyres >> jsquy...@cisco.com >> For corporate legal information go to: >> http://www.cisco.com/web/about/doing_business/legal/cri/ >> >> >> _______________________________________________ >> 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 >