Marc-Andre -- Sorry for the delay. Which version of Open MPI are you referring to? I'm offline at the moment, and I think you're referring to the OMPI 1.6 series -- I'm pretty sure we renamed these libraries in the 1.7/1.8 series, to something like libmpi_mpifh, libmpi_usmpi (respectively), and libmpi_usempif08.
More below. On Oct 8, 2014, at 9:50 AM, Marc-Andre Hermanns <m.a.herma...@grs-sim.de> wrote: > Dear Open-MPI Team, > > in the Score-P measurement system, we'd like to use the Fortran wrapper > libraries provided with Open-MPI rather than our own. When checking the > library directory we found: > > libmpi_f77.so > libmpi_f90.so > > Our questions are: > - Does it matter which one of the libraries we link with the application? Yes. > - Does the first correspond to mpif77 and the second to mpif90? No. Also note that in OMPI 1.7/1.8, we have renamed the Fortran wrapper to be mpifort -- mpif77 and mpif90 are sym links to mpifort provided simply for backwards compatibility. mpifort acts identically, regardless of whether it is invoked by the name "mpif77" or "mpif90" or "mpifort". In the 1.7/1.8 series, we link in all the Fortran libraries when you invoke mpifort, which allows you to use any of the 3 MPI Fortran interfaces (mpif.h, the mpi module, and the mpi_f08 module). This is, of course, tempered by what you built and installed -- e.g., if you're using an old version of gfortran, the libmpi_usempif08 library won't be built, and therefore won't be linked in by mpifort, and "use mpi_f08" in applications will fail to compile. > - Is there a best practice as to what to put on the link line? You don't need to list any MPI libraries on the mpifort (or mpif77 or mpif90 -- even back in the v1.6 series) command line. You can just: mpifort my_awesome_fortran_mpi_app.f90 -o foo And OMPI will link in the appropriate libraries for you. That's why we felt comfortable changing the Fortran library names in the v1.7/v1.8 series. -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/