HP aC++/HP C A.06.25 Programmer's Guide
setenv OMP_SCHEDULE "kind[,chunk_size]"
where, kind is either of of static, dynamic, or guided.
This environment variable applies to for and parallel for directives that have the
schedule type as runtime. The schedule type and chunk size for all such loops can be
set at runtime by setting this environment variable to any of the recognized schedule
types and to an optional chunk_size.
The default value of the environment variable is a static schedule with a chunk_size
of 1. If the optional chunk_size is set, the value must be positive. If chunk_size is
not set, a value of 1 is assumed, except for static schedule. For a static schedule,
the default chunk_size is set to the loop iteration space divided by a number of
threads applied to the loop.
NOTE: OMP_SCHEDULE is ignored for for and parallel for directives that have
a schedule type other than runtime.
OMP_NUM_THREADS
export OMP_NUM_THREADS=value
setenv OMP_NUM_THREADS value
The OMP_NUM_THREADS environment variable sets the default number of threads to
use during execution. The value of OMP_NUM_THREADS must be a positive integer. Its
effect depends on whether dynamic adjustment of the number of threads is enabled,
and its interaction with the omp_set_num_threads library routine and any
num_threads clause on a parallel directive.
The default value is the number of physical processors on the system.
OMP_DYNAMIC
export OMP_DYNAMIC=value
setenv OMP_DYNAMIC value
The OMP_DYNAMIC environment variable enables or disables dynamic adjustment of
the number of threads available for execution of parallel regions. The value must be
either TRUE or FALSE. The default value is FALSE.
If the value is set to FALSE, dynamic adjustment is disabled. If the value is set to TRUE,
the number of threads that are used for executing parallel regions may be adjusted by
the runtime environment to best utilize system resources.
OMP_NESTED
export OMP_NESTED=value
setenv OMP_NESTED value
222 Exception Handling