titan

Up since 11/8/17 02:45 pm

eos

Up since 11/14/17 11:20 pm

rhea

Up since 10/17/17 05:40 pm

hpss

Up since 11/20/17 09:15 am

atlas1

Up since 11/15/17 07:25 am

atlas2

Up since 11/27/17 10:45 am
OLCF User Assistance Center

Can't find the information you need below? Need advice from a real person? We're here to help.

OLCF support consultants are available to respond to your emails and phone calls from 9:00 a.m. to 5:00 p.m. EST, Monday through Friday, exclusive of holidays. Emails received outside of regular support hours will be addressed the next business day.

pgi

Description

Description

Website: Portland Group (PGI)

Cray provides the PGI compilers as part of several programming environments on Titan.

Note that Titan has two kinds of nodes:

1 .Compute nodes running the CNL OS. * To build code for the compute nodes, you should use the Cray wrappers cc, CC, and ftn. * The wrappers will call the appropriate PGI compiler which will use the appropriate header files and link against the appropriate libraries. 2. Service and login nodes running Linux. * To build code for the Linux service nodes, you can call the PGI compilers directly. (See list below.) * We strongly suggest that you don’t call the PGI compilers directly if you are building code to run on the compute nodes.

The Cray wrappers cc, CC, and ftn will automatically link against MPI (-lmpi) and SciLib (-lsci). This is not true when calling the PGI compilers directly. See the cc, CC, and ftn man pages for more information on their usage.

To see man pages on PGI compilers with a full list of compiler options, first make sure the “PrgEnv-pgi” module is loaded, and then do a man on any of the following:

  • pgcc
  • pgCC
  • pgf90/pgf95
  • pgf77

For more detailed information, see PGI documentation and Cray’s documentation.

Usage

Usage

To use the Cray wrappers with the PGI compilers, the PrgEnv-pgi module should be loaded:

module avail PrgEnv
module swap PrgEnv-pgi PrgEnv-pgi        # this loads some version of pgi, currently 15.7.0

To just use the PGI compilers directly, just load the pgi module you want:

module avail pgi
module load pgi/15.7.0         # Note that this does not changed the Cray wrappers.

It is possible to use the PGI compiler versions directly without loading the Cray Programming Environments, but note that the Cray wrappers will probably not work as expected if you do that.

It is best to review the pgcc, pgCC, and pgf90 man pages for a list of their options.

C/C++ Options

The following options control the amount of debugging information generated by the compiler. They can adversely affect optimization.

Option Description
-g Generates symbolic debug information. Turns off optimization.
-Mbounds Adds array bound checking.

For most cases, the usual levels of optimization are appropriate (-O0, -O1, -O2 [default], -O3). Here are a few exceptions.

Option Description
-fast Chooses generally optimal flags for the target platform. Use pgcc -fast -help to see the equivalent switches. Note this sets the optimization level to a minimum of 2; see -O.
-fastsse Chooses generally optimal flags for a processor that supports the streaming SIMD extensions (SSE) (Pentium 3/4, AthlonXP/MP, Opteron) and SSE2 (Pentium 4, Opteron) instructions. Use pgcc -fastsse -help to see the equivalent switches.
-tp barcelona-64 Targets optimization to the 64-bit Opteron quad-core processor.
-Mflushz Sets SSE to flush-to-zero mode.
-pg, -Mprof Instrument program for profiling. These flags imply different types of profiling.
-Minfo Generates an optimization report to standard error. This has several suboptions, so check the man page.
-mp=nonuma Enables the compiler to generate multithreaded code based on the OpenMP directives. Use the nonuma suboption when linking with the Cray wrappers.

Fortran Options

The following options control how source files are translated into machine code.

Option Description
-M fixed The source code uses fixed-form syntax, as in Fortran 77. This option is on by default for source files ending in .f, .F, .for, and .fpp.
-M free The source code uses free-form syntax, introduced in Fortran 90. This option is on by default for source files ending in .f90, .F90, .f95, .F95.
-F This option preprocesses each file and leaves the output in a file named file.f for each file named file.F.
-i8 This option treats INTEGER variables as 8 bytes. For operations involving integers, uses 64 bits for computations.
-r8 This option interprets REAL variables as DOUBLE PRECISION. Equivalent to using the options -Mr8 and -Mr8intrinsics.

The following options control the amount of debugging information generated by the compiler. They can adversely affect optimization.

Option Description
-g Generates symbolic debugging information. Turns off optimization.
-Mbounds Adds array bound checking.
-Mchkptr Checks for unintended dereferencing of null pointers.

For most cases, the usual levels of optimization are appropriate (-O0, -O1, -O2 [default], -O3). Here are a few exceptions.

Option Description
-fast Chooses generally optimal flags for the target platform. Use pgf90 -fast -help to see the equivalent switches. Note this sets the optimization level to a minimum of 2; see -O.
-fastsse Chooses generally optimal flags for a processor that supports the SSE (Pentium 3/4, AthlonXP/MP, Opteron) and SSE2 (Pentium 4, Opteron) instructions. Use pgf90 -fastsse -help to see the equivalent switches.
-Mflushz Sets SSE to flush-to-zero mode. -pg,
-Mprof Instrument program for profiling. These flags imply different types of profiling.
-Minfo Generates an optimization report to standard error. This has several suboptions, so check the man page.
-Mlist Generates a listing file.
-mp=nonuma Enables the compiler to generate multithreaded code based on the OpenMP directives. Use the nonuma suboption when linking with the Cray wrappers.

The following information is available by running module help pgi

----------- Module Specific Help for 'pgi/15.7.0' -----------------

PGI 15.7.0
===========

Purpose:
--------
  Features of PGI 15.7.0 are documented at:
    http://www.pgroup.com/doc/pgirn157.pdf

Documentation:
--------------
  Documentation for PGI 15.7.0 is in /opt/pgi/15.7.0/linux86-64/15.7/doc/
  PGI User's Guide,            pgi15ug.pdf
  PGI Fortran Reference,       pgifortref.pdf
  PGI CUDA Fortran Guide,      pgicudaforug.pdf
  PGI 15.7 Release Notes,      pgirn157.pdf
  PGI 15.7 Installation Guide, pgiinstall157.pdf

Modulefile:
-----------
  module load pgi/15.7.0

Making Default:
---------------
  To make this the default version, execute:
    /opt/admin-pe/set_default_files/set_default_pgi_15.7.0

Certain components, files or programs contained within this package or product are Copyright -2015 Cray Inc. All rights reserved.

Versions

Available Versions

System Application/Version
Titan pgi/14.1.0
Titan pgi/14.2.0
Titan pgi/14.4.0
Titan pgi/14.7.0
Titan pgi/14.10.0
Titan pgi/15.3.0
Titan pgi/15.7.0 (default)
Titan pgi/15.10.0
Eos pgi/12.10.0
Eos pgi/13.7.0
Eos pgi/14.2.0
Eos pgi/14.7.0
Eos pgi/14.9.0
Eos pgi/15.3.0(default)
Eos pgi/15.7.0
Rhea pgi/12.3
Rhea pgi/12.8
Rhea pgi/13.3
Rhea pgi/13.4
Rhea pgi/13.9
Rhea pgi/14.4
Rhea pgi/14.7