OMP_WAIT_POLICY environment variable

The OMP_WAIT_POLICY environment variable gives hints to the compiler about the preferred behavior of waiting threads during program run time. The OMP_WAIT_POLICY environment variable sets the wait-policy-var internal control variable value.

The syntax is as follows:
Read syntax diagramSkip visual syntax diagram
                     .-PASSIVE-.   
>>-OMP_WAIT_POLICY=--+-ACTIVE--+-------------------------------><

The default value for OMP_WAIT_POLICY is PASSIVE.

Use ACTIVE if you want waiting threads to be mostly active. With ACTIVE, the thread consumes processor cycles while waiting, if possible.

Use PASSIVE if you want waiting threads to be mostly passive. That is, the preference is for the thread to not consume processor cycles while waiting. For example, you prefer waiting threads to sleep or to yield the processor to other threads.

Note: If the OMP_WAIT_POLICY environment variable is set and the SPINS, YIELDS, or DELAYS suboptions of the XLSMPOPTS environment variable are specified, OMP_WAIT_POLICY takes precedence.