Skip to main content

pgi

Versions and Availability

h4

h5
Module Names for pgi on smic
Machine Version Module Name
smic 18.7(default) pgi/18.7(default)
smic 20.4 pgi/20.4
smic 21.3 pgi/21.3

▶ Module FAQ?

▶ Did not find the version you want to use??

About the Software

The Portland Group compilers for C, C++ and Fortran. It also supports OpenACC. http://www.pgroup.com/resources/docs.htm

Usage

PGI Compiler Commands
Serial Codes OpenMP Codes
Fortran pgf90 pgf90 -mp
C pgcc pgcc -mp
C++ pgCC pgCC -mp

To compile a serial program, the syntax is: <your choice of compiler> <compiler flags> <source file name> . For example, the command below compiles the source file mysource.f90and generate the executble myexec.

$ pgf90 -o myexec mysource.f90

To compile an OpenACC program, add the "-acc" flag:

$ pgcc -acc -o myexec_acc my_acc_source.c

▶ QSub FAQ?

Resources

Last modified: September 10 2020 11:58:50.