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,INFINITYto 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_POLICYisPASSIVE, 300,000 is used whenOMP_WAIT_POLICYis undefined and 30 billion is used whenOMP_WAIT_POLICYisACTIVE. If there are more OpenMP threads than available CPUs, 1000 and 100 spins are used forOMP_WAIT_POLICYbeingACTIVEor undefined, respectively; unless theGOMP_SPINCOUNTis lower orOMP_WAIT_POLICYisPASSIVE.- See also: