[Openmp-commits] [openmp] [libomp] Set `KMP_USE_YIELD=0` when `OMP_WAIT_POLICY=active` if it's not specified explicitly (PR #199628)

Ryotaro Kasuga via Openmp-commits openmp-commits at lists.llvm.org
Tue May 26 01:58:11 PDT 2026


kasuga-fj wrote:

I haven't added a testcase since I couldn't find a good way to do it. Ideally, I would add a testcase like [omp_wait_policy.c](https://github.com/llvm/llvm-project/blob/73f141f75caf842e289a9d8166365b702adfeb3b/openmp/runtime/test/env/omp_wait_policy.c), but there doesn't seem to be an API like `kmp_get_use_yield`. If the approach of this patch were reasonable, I wonder whether I should add such a function solely for testing purposes.

https://github.com/llvm/llvm-project/pull/199628


More information about the Openmp-commits mailing list