PGI Compilers
Introduction
Fortran, C and C++ compilers
Availability
PGI compilers are available on the Glenn and BALE clusters. Code
generated using these compilers tend to show better performance
on AMD Opteron processors.
Version
| System |
Module Name |
C |
C++ |
Fortran 77 |
Fortran 90 |
Software Version |
| glenn.osc.edu |
pgi |
pgcc |
pgCC |
pgf77 |
pgf90 |
7.0-4 |
| bale-login.ovl.osc.edu |
pgi |
pgcc |
pgCC |
pgf77 |
pgf90 |
7.1-5 |
Usage
The Portland Group compilers are made accessible by
loading the appropriate module in your login environment.
Once this has been done, the compilers are available for your
use. The following table lists common compiler options
available in all languages.
| Compiler option |
Purpose |
| -c |
Compile into object code only; do not link |
| -DMACRO[=value] |
Defines preprocessor macro MACRO with
optional value (default value is 1) |
| -g |
Enables debugging; disables optimization |
| -I/directory/name |
Add /directory/name to the list of
directories to be searched for #include
files |
| -L/directory/name |
Adds /directory/name
to the list of directories to be searched for library
files |
| -lname |
Adds the library libname.a
or libname.so to the list of
libraries to be linked |
| -o outfile |
Names the resulting executable outfile
instead of a.out |
| -UMACRO |
Removes definition of MACRO
from preprocessor |
| -O0 |
Disable optimization; default if
-g is specified
|
| -O1 |
Light optimization; default if
-g is not specified
|
| -O or
-O2 |
Heavy optimization |
| -O3 |
Aggressive optimization; may change numerical results |
| -Mipa |
Inline function expansion for calls to procedures defined in
separate files; implies -O2 |
| -Munroll |
Loop unrolling; implies -O2 |
| -Mconcur |
Automatic parallelization; implies -O2
|
| -mp |
Enables translation of OpenMP directives |
Documentation
Vendor documentation can be viewed from
this page.
|