This is an archive of the discontinued LLVM Phabricator instance.

Clean up load balancing dynamic mode
ClosedPublic

Authored by tlwilmar on Mar 18 2019, 1:16 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

tlwilmar created this revision.Mar 18 2019, 1:16 PM
tlwilmar edited the summary of this revision. (Show Details)Mar 18 2019, 1:23 PM
This revision is now accepted and ready to land.Apr 8 2019, 10:40 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2019, 10:48 AM