Example CC flags

Compilers: Cray compiler

Operating systems: Linux

Last updated: 21-Jan-2014 blw

The text for many of the descriptions below was taken from the online help for Cray compiler.

Sections

Selecting one of the following will take you directly to that section:


Optimization Flags


Portability Flags


Compiler Flags


Shell, Environment, and Other Software Settings

Platform settings

One or more of the following settings may have been applied to the testbed. If so, the "Platform Notes" section of the report will say so; and you can read below to find out more about what these settings mean.

LD_LIBRARY_PATH=<directories> (linker)
LD_LIBRARY_PATH controls the search order for both the compile-time and run-time linkers. Usually, it can be defaulted; but testers may sometimes choose to explicitly set it (as documented in the notes in the submission), in order to ensure that the correct versions of libraries are picked up.

STACKSIZE=<n> (Unix)
Set the size of the stack (temporary storage area) for each slave thread of a multithreaded program.

ulimit -s <n> (Unix)
Sets the stack size to n kbytes, or "unlimited" to allow the stack size to grow without limit.

OMP_DYNAMIC=<TRUE | FALSE>
Enables (TRUE) or disables (FALSE) the dynamic adjustment of the number of threads.

OMP_NESTED=<TRUE | FALSE>
Enables (TRUE) or disables (FALSE) nested parallelism.

OMP_NUM_THREADS=<n>
Sets the maximum number of threads to use for OpenMP parallel regions if no other value is specified in the program itself.

threads=<n>
Same as OMP_NUM_THREADS, it sets the maximum number of threads to use for OpenMP parallel regions if no other value is specified in the program itself.