NAG Fortran Compiler
This document informs about installation and usage of the NAGWare Fortran compiler on LRZ computing platforms.
Introductory Remarks
LRZ has a licensing contract with NAG which enables using its Fortran compiler product on the x86_64 Linux cluster. It supports nearly all of the features described in the Fortran 2008 standard, and some Fortran 2018 features. Furthermore, a large subset of the shared-memory parallel programming model OpenMP is supported. Coarrays are supported through a shared-memory implementation (they cannot be used simultaneously with OpenMP, though).
The biggest advantage of the compiler are its extensive diagnostic and code polishing and checking features.
Usage
Before using the compiler, please first set up the required environment by loading the appropriate environment module:
module unload intel
module load nag
The compiler is then available via the nagfor command.
Documentation
Once the nag environment module is loaded, the following man 1 pages (among others) become available: nagfor, nagfmcheck, fpp, dbx90.
The variable $NAG_DOC points at a directory containing documentation in PDF format.
In case of problems please contact Support for HPC.