NCCS | User Info | search  

  Intel Fortran


Contents


Introduction

The Fortran compiler on Ram is the Intel Fortran "efc" (extended fortran compiler). It supports the Fortran 95 standard and some features of Fortran 2000.

The default "efc" compiler is version 7. A version 8 is also available for use. The version 8 compiler combines the "Compaq Visual Fortran" front-end with the Intel Fortran back-end. Thus, there are many differences. You will need to use the "module" command to load the newer version if desired.

The Intel Fortran compiler is named "efc" for version 7. For version 8, Intel has renamed the compiler "ifort", but "efc" will still work.


Options

The following options control how source files are translated into machine code. Note that all the following options work for both version 7 and 8.
-FI
The source code uses fixed-form syntax, like in Fortran 77.
-FR
The source code uses free-form syntax, introduced in Fortran 90.
The following options control the amount of debugging information generated by the compiler. They can adversely affect optimization.

-g
Produce symbolic debug information in object file.
-DD
Compile debug statements (indicated by D in column 1).

For most cases, the usual levels of optimization are appropriate (-O0, -O1, -O2 (default), -O3). Here are a few exceptions.

-ftz
Enables floating underflow results set to zero.
-tpp2
Target optimization to the Itanium 2 processor.
-prof_gen
Instrument program for profiling.
-opt_report
Generate an optimization report to stderr.
-openmp
Enable the compiler to generate multi-threaded code based on the OpenMP* directives.
-openmp_profile
Link with instrumented OpenMP runtime library to generate OpenMP profiling information for use with the OpenMP component of the VTune(TM) Performance Analyzer.
-parallel
Enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel.


Documentation

See "man efc" for a full list of compiler options. Note that the man page corresponds to what efc module you have loaded. Thus, by default you get a man page for the version 7 compiler. If you load the version 8 compiler, then you "man efc" will give you the man page for the version 8 compiler.

SGI and Intel have more information at the following URLs.


phoenix | ram | cheetah | eagle
ornl | nccs | ccs | computers | disclaimer

URL http://www.ccs.ornl.gov/Ram/efc.html
Updated: Friday, 23-Jan-2004 10:39:39 EST
consult@ccs.ornl.gov