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

what compiler do I need for Fortran 90 with MPI

flashgl
Beginner
1,445 Views
Hi
I need to compile Fortran 90 code with link to MPI library. I have MPICH installed in this linux86_64 system, and have the mpif90 in the MPICH/bin directory. however when I try to use that compiler I get this error:
No Fortran 90 compiler specified when mpif90 was created,
or configuration file does not specify a compiler.


I downloaded the intel fortran compiler package but since my system is 64bit, and this compiler is for 32bit archictecture I didn't install the intel compiler. Any ideas as to what specific compiler I need to have? Any advice will be greatly appreciated.

Thanks
Nanda

0 Kudos
6 Replies
TimP
Honored Contributor III
1,445 Views
Both a 32- and a 64-bit compiler for x86-64 come in the standard Intel compiler packages. Both will work on an x86-64 system, although you would normally prefer the 64-bit. Nearly any version of MPI would support either, including several varieties of mpich, and Intel mpi, which is the only one likely to come pre-configured for Intel as well as gnu compilers. Generally, you can find advice in the help files and support groups which go with your choice of MPI on how to set up with ifort.
0 Kudos
flashgl
Beginner
1,445 Views
OK i will look up the help files for more info. thanks for the advice.smiley [:-)]
0 Kudos
flashgl
Beginner
1,445 Views
I installed the EM64T version of the compiler. But I get this error when I try to use ifort.
fortcom: Error: imagesxy.f90, line 9: This module file was not generated by any release of this compiler. [NETCDF]
use NETCDF
----^
Here's how the settings in the makefile looks:
F90 = /opt/intel/fce/9.1.037/bin/ifort
FFLAGS = -c -O2 -I/opt/netCDF/include
LDR = /opt/intel/fce/9.1.037/bin/ifort
LDRFLAGS =
LIBS = -ldl -lpthread -L/opt/netCDF/lib -lnetcdf
#LIBS = -L/opt/mpich-ch_P4-gcc-1.2.7/lib -lmpich -lfmpich -ldl -lpthread -L/opt/netCDF/lib -lnetcdf

Any suggestions as to what might be the problem here?
Thanks!



0 Kudos
Steven_L_Intel1
Employee
1,445 Views
Where did netcdf.mod come from? I assume you did not compile it using ifort.
0 Kudos
flashgl
Beginner
1,445 Views
netcdf.mod resides in /opt/netCDF/include/ directory. And yeah netCDF was installed before I even installed the Intel compiler and there was no ifort in my system from before. I just checked the README of netCDF and it says whatever is default Fortran compiler in the system, that will be used to build the netCDF fortran package. So you think I should try to re-install netCDG using ifort for fortran compilation?
thanks!

0 Kudos
flashgl
Beginner
1,445 Views
Reinstalled netCDF library using ifort for fortran and now it works.

Thanks!!

0 Kudos
Reply