- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page