...
To learn more about the XL C/C++ and Fortran compilers, access the online product documentation in IBM Knowledge Center for the XL C/C++ compiler and the XL Fortran compiler.
PORTLAND Group (PGI)
NVIDIA HPC SDK (ex PORTLAND PGI + NVIDIA CUDA)
As of August 5, 2020, the "PGI Compilers and Tools" technology is a part of the NVIDIA HPC SDK product, available as a free download from NVIDIA.
Invocations | Usage |
---|---|
nvc | Compile C source files (C11 compiler. It supports GPU programming with OpenACC, and supports multicore CPU programming with OpenACC and OpenMP) |
nvc++ | Compile C++ source files (C++17 compiler. It supports GPU programming with C++17 parallel algorithms (pSTL) and OpenACC, and supports multicore CPU programming with OpenACC and OpenMP) |
nvfortran | Compile FORTRAN source files (supports ISO Fortran 2003 and many features of ISO Fortran 2008. It supports GPU programming with CUDA Fortran and OpenACC, and supports multicore CPU programming with OpenACC and OpenMP) |
nvcc | CUDA C and CUDA C++ compiler driver for NVIDIA GPUs |
For legacy resons, the nVIDIA HPC SDK suite also offers the PGI The PGI compiler family offers C, C++, and Fortran compilers , with their original names are:
Invocations | Usage |
---|---|
pgcc | Compile C source files. |
pgcc | Compile C++ source files. |
pgf77 | Compile FORTRAN 77 source files |
pgf90 | Compile FORTRAN 90 source files |
pgf95 | Compile FORTRAN 95 source files |
pghpf | Compile High Performance FORTRAN source files |
The OpenMP parallelization is enabled by the -mp compiler option.
The documentation can be obtained with the man command after loading the pgi module:
...
The GPU offload via OpenMP is enabled by the -mp=gpu option
GNU compilers
The gnu compilers are always available but they are not the best optimizing compilers, it ensures the maximum portability. You do not need to load the module for using them.
...