OMP_WAIT_POLICY changes
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 4 Apr 2016 19:38:32 +0000 (19:38 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 4 Apr 2016 19:38:32 +0000 (19:38 +0000)
commit50e8f18b526d5f56489371ceb1cb1f099ac37fe4
tree3df067657b3c13d8d0fad4d9ed8026339bce7a5e
parent8874ef7cf114aa408686ed10ed8cb8aa4cd78af5
OMP_WAIT_POLICY changes

This change has OMP_WAIT_POLICY=active to mean that threads will busy-wait in
spin loops and virtually never go to sleep. OMP_WAIT_POLICY=passive now means
that threads will immediately go to sleep inside a spin loop. KMP_BLOCKTIME was
the previous mechanism to specify this behavior via KMP_BLOCKTIME=0 or
KMP_BLOCKTIME=infinite, but the standard OpenMP environment variable should
also be able to specify this behavior.

Differential Revision: http://reviews.llvm.org/D18577

llvm-svn: 265339
openmp/runtime/src/kmp_settings.c
openmp/runtime/test/env/omp_wait_policy.c [new file with mode: 0644]