CRC Wiki
CRC Wiki
Log in

Portland Group Compiler (PGI)

From CRC Wiki

General Description

The Portland Group Compiler suite contains front ends for C/C++ and Fortran compilation, debugging and profiling of code. Allows for auto-parallelization to a shared memory program(smp) environment, i.e. OpenMP. For use on an x86/x64 CPU.

Basic Usage

Basic source code compilation usage is as follows:

C

pgcc hello.c -o hello

C++

pgCC hello.cpp -o hello
pgcpp hello.cpp -o hello

Fortran

pgf95 hello.f90 -o hello
pgfortran hello.f90 -o hello

High Performance Fortran

pghpf hello.hpf -o hello

Debugger - graphical interface

pgdbg

Profiler - graphical interface

pgprof

Useful Options

-Wall

Display all warnings during compilation

-O3

Compile at higher optimization level

-g

Enable debug symbols in executable (required for debuggers)

-help

Displays permitted flags for the given compiler.

Further Information

See the official website: PGI CDK

The User Guide, v.11.x, may be found here

The guide for the Debugger and Profiler, v.11.x, may be found here