[Openmp-commits] [PATCH] D35912: Fix implementation of OMP_THREAD_LIMIT
Terry Wilmarth via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jul 26 13:43:24 PDT 2017
tlwilmar created this revision.
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).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11123 bytes
Desc: not available
More information about the Openmp-commits