Using the PGI Compilers
1. Environment Setup
1.1 tcsh users
The following settings are made by default for all users in the
system-wide start up file /etc/csh.cshrc.
Users should be aware that
modification of any of the listed environment variables via, e.g., settings
in ~/.cshrc, may adversely impact functioning of the Intel compiler suite.
- PGI environment variable: Must be set to /opt/pgi
- PATH environment variable: Must include /opt/pgi/linux86/bin.
- MANPATH environment variable: Must include /opt/pgi/man.
1.2 bash users
The following settings are made by default for all users in the
system-wide start up file /etc/profile.
Users should be aware that
modification of any of the listed environment variables via, e.g., settings
in ~/.bashrc, may adversely impact functioning of the Intel compiler suite.
- PGI environment variable: Must be set to /opt/pgi
- PATH environment variable: Must include /opt/pgi/linux86/bin.
- MANPATH environment variable: Must include /opt/pgi/man.
2. Available Commands
- pgcc: C compiler
- pgCC: C++ compiler
- pgf77: F77 compiler
- pgf90: F90 compiler
- pgdbg: PGI (graphical) debugger
Man pages are available for all of the above commands.
3. Sample Usage
- Compilation of simple C program
head% pgcc pgm.c -o pgm
- Compilation of simple F77 program
head% pgf77 pgm.f -o pgm
4. Recommended Flag Settings
5. Web-based Documentation
BACK to cluster home page.