HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

2  Internal Control Variables

An OpenMP implementation must act as if internal control variables (ICVs) control the behavior of an OpenMP program. These ICVs store information such as the number of threads to use for future parallel regions. One copy exists of each ICV per instance of its scope. Possible ICV scopes are: global; device; implicit task; and data environment. If an ICV has global scope then one copy exists for the whole program. The ICVs are given values at various times (described below) during the execution of the program. They are initialized by the implementation itself and may be given values through OpenMP environment variables and through calls to OpenMP API routines. The program can retrieve the values of these ICVs only through OpenMP API routines.

For purposes of exposition, this document refers to the ICVs by certain names, but an implementation is not required to use these names or to offer any way to access the variables other than through the ways shown in Section 2.2.

 2.1  ICV Descriptions
 2.2  ICV Initialization
 2.3  Modifying and Retrieving ICV Values
 2.4  How the Per-Data Environment ICVs Work
 2.5  ICV Override Relationships