- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK i will look up the help files for more info. thanks for the advice.![smiley [:-)]](/file/6746)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where did netcdf.mod come from? I assume you did not compile it using ifort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reinstalled netCDF library using ifort for fortran and now it works.
Thanks!!
Thanks!!

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