Compiler Flag Equivalence
This page is for version 11 (default).
For other versions, use one of these documentation indexes:
- 11 (default): https://docs.nvidia.com/base-command-manager/product-manuals/11/llms.txt
- 10: https://docs.nvidia.com/base-command-manager/product-manuals/10/llms.txt
The following table is an overview of some of the compiler flags that are equivalent or almost equivalent.
| Cray | Intel | GCC | Explanation |
|---|---|---|---|
| default | default | -O3 -ffast-math | Produce high level of optimization |
-Oomp (default) | -openmp | -fopenmp | Activate OpenMP directives and pragmas in the code |
-h byteswapio | -convert big_endian | -fconvert=swap | Read and write Fortran unformatted data files as big-endian |
-f fixed | -fixed | -ffixed-form | Process Fortran source using fixed form specifications. |
-f free | -free | -ffree-form | Process Fortran source using free form specifications. |
-V | —version | —version | Dump version. |
-h zero | N/A | -finit-local-zero | Zero fill all uninitialized variables. |
-e m | Creates .mod files to hold Fortran90 module information for future compiles. | ||
-j <dir_name> | Specifies the directory <dir_name> to which .mod files are written when the -e m option is specified |