Personal tools
You are here: Home UiT Stallo Documentation Stallo User Guide (old) Fortran compilers
Document Actions

Fortran compilers

Up to Table of Contents

Information about Fortran compilers on Stallo.

The recommended Fortran compiler is the Intel Fortran Compiler; ifort.
The g77 compiler is also installed, but we do not recommend it for general usage.


Usage of the Intel ifort compiler

Plain Fortran codes
For plain Fortran codes (all Fortran standards) the general form for usage of the Intel ifort compiler is as follows:

ifort [options] file1 [file2 ...]         - Same for ALL Fortran standards

where options represents zero or more compiler options, and fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or an other linkable file. Commonly used options may be placed in the ifort.cfg file.

OpenMP based Fortran codes
The form above also applies for Fortran codes parallelized with OpenMP (www.openmp.org, Wikipedia); you only have to select the necessary compiler options for OpenMP.

MPI based Fortran codes
For Fortran codes parallelized with MPI the general form is quite similar:

mpif90 [options] file1 [file2 ...]       

mpif90 is using the the Intel Ifort compiler, it is just a wrapper that invokes all the necessary MPI stuff automatically for you. Therefore, everything else is the same for compiling MPI codes as for compiling plain Fortran codes. Please check the section abut MPI Libraries for more information about using MPI on Stallo.


Intel Fortran Compiler Documentation

In general we will recommend our users to approach the Intel ifort documentation in the following order:



by Tor Johansen last modified Feb 12, 2008 11:23 AM Notur