llvm-project/openmp/runtime/test/env
Jonathan Peyton f439246328 Fix implementation of OMP_THREAD_LIMIT
This change fixes the implementation of OMP_THREAD_LIMIT. The implementation of
this previously was not restricted to a contention group (but it should be,
according to the spec), and this is fixed here. A field is added to root thread
to store a counter of the threads in the contention group. An extra check is
added when reserving threads for a parallel region that checks this variable and
compares to threadlimit-var, which is implemented as a new global variable,
kmp_cg_max_nth. Associated settings changes were also made, and clean up of
comments that referred to OMP_THREAD_LIMIT, but should refer to the new
KMP_DEVICE_THREAD_LIMIT (added in an earlier patch).

Patch by Terry Wilmarth

Differential Revision: https://reviews.llvm.org/D35912

llvm-svn: 309319
2017-07-27 20:58:41 +00:00
..
kmp_aff_disable_hwloc.c Fix for KMP_AFFINITY=disabled and KMP_TOPOLOGY_METHOD=hwloc 2017-05-31 20:35:22 +00:00
kmp_set_dispatch_buf.c Offer API for setting number of loop dispatch buffers 2016-05-31 19:01:15 +00:00
omp_thread_limit.c Fix implementation of OMP_THREAD_LIMIT 2017-07-27 20:58:41 +00:00
omp_wait_policy.c