[Beowulf] f77 in f90

Prentice Bisbal prentice at ias.edu
Fri Jun 26 07:09:03 PDT 2009

amjad ali wrote:
> Hi, all,
> I am parallelizing a serial-fortran77 code having .f source files. I am
> planning to save the fortran source file as .f90 instead of .f files.
> Then I would use the mpif90 compiler. The fortran77 constructs in the
> code are understood by mpif90 compiler (i feel so).

You're feelings are correct. F90 is a superset of F77, so any correct
F77 code is also correct F90 code.

> Will there be any performance loss (or gain) in compiling the fortran77
> code with mpif90 (where the code will be containing some fortran90
> constructs as well)? Any opinion?

I doubt it. Most modern Fortran compilers do F77 and F90 (ifort and
gfortran for example), so the same optimization logic is being used.
> An advantage with mpif90 is that I can use ALLOCATABLE arrays for some
> basic array variables; saving memory.


More information about the Beowulf mailing list