Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Intel mpi

swang
Beginner
638 Views
Hi, everyone:

I downloaded the trial version of Intel MPI.
I installed and discovered that gfortran was called in for Intel mpif90.
Isn't this weird? Because gfortran uses totally different FFLAGS compared to Intel,


If I download MPICH and install it using Intel Fortran. Can I use the same flag as I did for Intel mpif90?

Regards,
shizoom
0 Kudos
2 Replies
TimP
Honored Contributor III
638 Views
Intel MPI comes pre-configured with mpif90 set up for gfortran, and mpiifort set up for ifort. If you don't like that, you could try (unsupported) renaming mpif90 to mpigfort and copying mpiifort to mpif90, for example. But, if you ask support questions, for example, it would make more sense to use it as intended.
If you built mpich with ifort, of course the mpif90 would be using ifort, and would not work with gfortran options other than those which are shared with ifort.
0 Kudos
Ron_Green
Moderator
638 Views
MPICH built with the Intel Fortran compiler will be invoked with the mpif90 wrapper. For Intel MPI, you use mpiifort. For either wrapper that calls the Intel Fortran compiler, yes, you can set FFLAGS or send Intel Fortran compiler options through the wrapper:

mpiifort -xhost -O3 -prec-div -prec-sqrt foobar.f90

or

mpif90 $(FFLAGS) foobar.f90 for an mpich usage inside a makefile.

The Intel tools don't try to force people to use our compilers. For example, Intel MKL allows users to choose GNU, PGI, Intel, and works with all of these compilers.
0 Kudos
Reply