[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).


Repository:
  rL LLVM

https://reviews.llvm.org/D35912

Files:
  runtime/src/i18n/en_US.txt
  runtime/src/kmp.h
  runtime/src/kmp_ftn_entry.h
  runtime/src/kmp_global.cpp
  runtime/src/kmp_runtime.cpp
  runtime/src/kmp_settings.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35912.108350.patch
Type: text/x-patch
Size: 11123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170726/b7faf098/attachment-0001.bin>


More information about the Openmp-commits mailing list