GOMP_SPINCOUNT – Set the busy-wait spin count#
- Description:
Determines how long a threads waits actively with consuming CPU power before waiting passively without consuming CPU power. The value may be either
INFINITE
,INFINITY
to always wait actively or an integer which gives the number of spins of the busy-wait loop. The integer may optionally be followed by the following suffixes acting as multiplication factors:k
(kilo, thousand),M
(mega, million),G
(giga, billion), orT
(tera, trillion). If undefined, 0 is used whenOMP_WAIT_POLICY
isPASSIVE
, 300,000 is used whenOMP_WAIT_POLICY
is undefined and 30 billion is used whenOMP_WAIT_POLICY
isACTIVE
. If there are more OpenMP threads than available CPUs, 1000 and 100 spins are used forOMP_WAIT_POLICY
beingACTIVE
or undefined, respectively; unless theGOMP_SPINCOUNT
is lower orOMP_WAIT_POLICY
isPASSIVE
.- See also: