OMP_WAIT_POLICY
The OMP_WAIT_POLICY environment
variable provides hints about the preferred behavior of waiting threads
during program execution. The syntax is as follows:
.-PASSIVE-. >>-OMP_WAIT_POLICY=--+-ACTIVE--+-------------------------------><
Use ACTIVE if you want waiting threads to mostly be active. That is, the threads consume processor cycles while waiting. For example, waiting threads can spin while waiting. The ACTIVE wait policy is recommended for maximum performance on the dedicated machine.
Use PASSIVE if you want waiting threads to mostly be passive. That is, the threads do not consume processor cycles while waiting. For example, waiting threads can sleep or yield the processor to other threads.
The default value of OMP_WAIT_POLICY is PASSIVE.
Note: If
you set the OMP_WAIT_POLICY environment
variable and specify the SPINS, YIELDS,
or DELAYS suboptions of the XLSMPOPTS environment
variable, OMP_WAIT_POLICY takes precedence.