[OpenMP] libomp: honor passive wait policy requested with tasking
authorAndreyChurbanov <andrey.churbanov@intel.com>
Wed, 18 May 2022 15:01:18 +0000 (10:01 -0500)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 18 May 2022 15:04:30 +0000 (10:04 -0500)
commitc44ba01de7f050f126a8a7b2ddeb6286237bb384
treee01f18c4c1a2843b5f8ab1ca3f2814e92a30966a
parentd39928e2cc393a21c8367ef318019166124f4b56
[OpenMP] libomp: honor passive wait policy requested with tasking

Currently the library ignores requested wait policy in the presence
of tasking. Threads always actively spin. The patch fixes this problem
making the wait policy passive if this explicitly requested by user.

Differential Revision: https://reviews.llvm.org/D123044
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_global.cpp
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/src/kmp_tasking.cpp
openmp/runtime/src/kmp_wait_release.h