Section 2.2 shows the ICVs, associated environment variables, and initial values.
| ||
ICV |
Environment Variable | Initial Value |
active-levels-var |
(none) | Zero |
affinity-format-var |
OMP_AFFINITY_FORMAT | Implementation defined |
bind-var |
OMP_PROC_BIND | Implementation defined |
cancel-var |
OMP_CANCELLATION | False |
debug-var |
OMP_DEBUG | disabled |
def-allocator-var |
OMP_ALLOCATOR | Implementation defined |
default-device-var |
OMP_DEFAULT_DEVICE | See below |
display-affinity-var |
OMP_DISPLAY_AFFINITY | False |
dyn-var |
OMP_DYNAMIC | Implementation defined |
explicit-task-var |
(none) | False |
final-task-var |
(none) | False |
levels-var |
(none) | Zero |
max-active-levels-var |
OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS, OMP_PROC_BIND | Implementation defined |
max-task-priority-var |
OMP_MAX_TASK_PRIORITY | Zero |
nteams-var |
OMP_NUM_TEAMS | Zero |
nthreads-var |
OMP_NUM_THREADS | Implementation defined |
num-procs-var |
(none) | Implementation defined |
place-partition-var |
OMP_PLACES | Implementation defined |
run-sched-var |
OMP_SCHEDULE | Implementation defined |
stacksize-var |
OMP_STACKSIZE | Implementation defined |
target-offload-var |
OMP_TARGET_OFFLOAD | default |
team-size-var |
(none) | One |
teams-thread-limit-var |
OMP_TEAMS_THREAD_LIMIT | Zero |
thread-limit-var |
OMP_THREAD_LIMIT | Implementation defined |
thread-num-var |
(none) | Zero |
tool-libraries-var |
OMP_TOOL_LIBRARIES | empty string |
tool-var |
OMP_TOOL | enabled |
tool-verbose-init-var |
OMP_TOOL_VERBOSE_INIT | disabled |
wait-policy-var |
OMP_WAIT_POLICY | Implementation defined |
If an ICV has an associated environment variable and that ICV does not have global scope then the ICV has a set of associated device-specific environment variables that extend the associated environment variable with the following syntax:
<ENVIRONMENT VARIABLE>_DEV[_<device>]
where <ENVIRONMENT VARIABLE> is the associated environment variable and <device> is the device number as specified in the device clause (see Section 13.2).
Semantics
The host and non-host device ICVs are initialized before any OpenMP API construct or OpenMP API routine executes. After the initial values are assigned, the values of any OpenMP environment variables that were set by the user are read and the associated ICVs are modified accordingly. If no <device> number is specified on the device-specific environment variable then the value is applied to all non-host devices.
Cross References