[Openmp-commits] [PATCH] D59508: Clean up load balancing dynamic mode

Terry Wilmarth via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Mar 18 13:17:06 PDT 2019


tlwilmar created this revision.
tlwilmar added reviewers: AndreyChurbanov, jlpeyton, hbae.
tlwilmar added a project: OpenMP.
Herald added subscribers: jdoerfert, jfb.

This patch cleans up the bookkeeping code for the load balancing dynamic mode.

When a thread is moved to or from the thread pool, the th_active_in_pool flag and the __kmp_thread_pool_active_nth global counter are both updated. This removes the need for the corrective code in the main wait loop.  Another global counter, __kmp_thread_pool_nth, was removed completely, as it was only used for debugging, but was not under KMP_DEBUG.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D59508

Files:
  runtime/src/exports_so.txt
  runtime/src/kmp.h
  runtime/src/kmp_global.cpp
  runtime/src/kmp_runtime.cpp
  runtime/src/kmp_taskq.cpp
  runtime/src/kmp_wait_release.h
  runtime/src/z_Linux_util.cpp
  runtime/src/z_Windows_NT_util.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59508.191156.patch
Type: text/x-patch
Size: 6911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190318/b7168dbe/attachment.bin>


More information about the Openmp-commits mailing list