=====Portland Group Fortran=====
The Fortran compiler on Tiger is Portland Group Fortran. Tiger will most likely have several versions of the PGI compilers installed at any given time. A ''module avail'' will show what is available. A "''module list''" will show what is loaded (if anything.)
The PGI 6.0 Fortran compiler has three commands
Upon login, your environment does not have any compilers loaded. You will need to do a ''module load <compiler>''. After that, you can use the compiler and read its man page. Please use " module avail" to see the available modules.
When you load a compiler module, a related mpich module will be loaded as well. This module contains header files and libraries for MPI. In addition, it contains the mpif77 and mpif90 commands. To compile an MPI program, you will need to use mpif77 or mpif90 instead of the pgf77 or pgf90. Using mpif77/mpif90 will call the appropriate compiler, and it will set up the appropriate header and library paths for MPI. It will also automatically link in any necessary libraries for MPI. Thus, there is no need to add ''-lmpi'' to your command line.
=====Options=====
The following options control how source files are translated into machine code.
''-M fixed''
''-M free''
''-F''
----
The following option controls the memory model used by the resulting executable. It can be critical for applications that use more than 2 GB of memory per process.
''-mcmodel=medium''
----
The following options control the amount of debugging information generated by the compiler. They can adversely affect optimization.
''-g''
''-Mbounds''
----
For most cases, the usual levels of optimization are appropriate (-O0, -O1, -O2 (default), -O3). Here are a few exceptions.
''-fast''
''-fastsse''
''-Mflushz''
''-pg'
''-ql''
''-Mprof''
''-Minfo''
''-Mlist''
''-mp''
=====Documentation=====
See ''man pgf77'' or ''man pgf90'' for a full list of compiler options. PDF and HTML documentation is also available online from Portland Group at the following URL.
http://www.pgroup.com/doc/pgiug.pdf
http://www.pgroup.com/resources/tips.htm