12f81b0f7c109d477b83ad663a52f1d018c4bde9
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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@309319 91177308-0d34-0410-b5e6-96231b3b80d8
Description
No description provided
11 MiB
Languages
C++
68.3%
C
19%
Perl
3.8%
Cuda
3.2%
CMake
3.1%
Other
2.5%