Skip to content

NVHPC Compilers

NVHPC (formerly PGI) compilers for C, C++, and Fortran


NVHPC Compilers requires an environment module

In order to use NVHPC Compilers, you must first load the appropriate environment module:

module load nvhpc

NVHPC is a powerful toolkit for developing GPU-enabled software intended to be scalable to HPC platforms. NVHPC includes a complete CUDA SDK along with compilers for CUDA Fortran as well as the standard NVCC and NVC++ compilers for CUDA.

Note

This compiler suite used to be known as the PGI (Portland Group). PGI is now part of NVIDIA and has now evolved into the NVIDIA SDK.

Supported languages#

Below are the compiler commands for C,C++, Fortran 77, and Fortran 90 and 95:

1
2
3
4
5
6
7
8
# C compiler
nvc

# C++ compiler
nvc++

# Fortran compiler (ISO Fortran 2003 with some features of Fortran 2008)
nvfortran

More Information#

The NVHPC man pages contain very descriptive documentation for each compiler. For example:

man nvc