Portland

From Vd

Jump to: navigation, search

Portland compiler

Portland compiler web page The Portland compiler is installed as an alternative fortran compiler. The executable binaries are installed at /site/pgi/linux86-64/6.2/bin/ and the different programs that is most commonly used are : pgf77, pgf90, pgf95, pgcc and pgCC. The associated libraries can be found at /site/pgi.

Compiler flags

The most common compiler flags are :

  • -c just compile, do not attempt linking
  • -O2 Turn on extensive optimization. This is the default.
  • -O3 Turn on aggressive optimization.
  • -Ofast Equivalent to
  • -w Suppress all warnings

Normally the Portland fortran compiler generate reasoably efficient code with just the standard compiler flags like -O2 etc. For more information refer to man pgif90 etc, or the manual found at the Portland web page or the user guide at /site/ on titan.


The Portland fortran compilers add a single underscore "_" to symbols. The nm utility can be used to list the symbols in an object file.

[olews@login-0-0 f77]$ nm realft.o
0000000000000000 T realft_
00000000000002e7 t __realft_END
[olews@login-0-0 f77]$
Views
Personal tools