Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between mpif90 and mpifort

Tags:

mpi

openmpi

What is the difference between these two compilers, mpif90 and mpifort? Both seems to be for Fortran 90 code. Both got installed when I installed openMPI on Linux. Are the usage (compiler options) different?

like image 493
boxofchalk1 Avatar asked Dec 17 '14 00:12

boxofchalk1


People also ask

What is mpif90?

Description. This command can be used to compile and link MPI programs written in Fortran 90. It provides the options and any special libraries that are needed to compile and link MPI programs. This command is still under development, as is support in MPICH for Fortran 90.

What is Mpicc Openmpi?

The Open MPI Project is an open source Message Passing Interface implementation that is developed and maintained by a consortium of academic, research, and industry partners.


1 Answers

The MPI standard says nothing about the various compiler wrappers, except that "Some MPI libraries are shipped together with special compilation scripts".

Thus, one needs to consult OpenMPI's documentation:

http://www.open-mpi.org/faq/?category=mpi-apps#mpifort-vs-mpif77-and-mpif90

The gist of it is that modern fortran compilers are better about determining if code should be treated like fortran 2008, fortran 2003, fortran 90, fortran 77, or whatever. OpenMPI wants folks to just use mpifort, and let the fortran front-end compiler do the work.

like image 72
Rob Latham Avatar answered Oct 19 '22 21:10

Rob Latham