[all-commits] [llvm/llvm-project] 8d689e: Fix initialization of th_task_state on each thread...

Terry Wilmarth via All-commits all-commits at lists.llvm.org
Wed Feb 8 15:40:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d689e5bfde039e17616ab334750df1f9356adfa
      https://github.com/llvm/llvm-project/commit/8d689e5bfde039e17616ab334750df1f9356adfa
  Author: Terry Wilmarth <terry.l.wilmarth at intel.com>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M openmp/runtime/src/kmp_runtime.cpp

  Log Message:
  -----------
  Fix initialization of th_task_state on each thread on expanding hot teams.

The th_task_state was initialized from the master thread's value, or
from its memo stack, but this causes problems because neither of those
may have the right value at the right time. However, other threads in
the team are guaranteed to have the right values, so we change the
initialize the new threads' th_task_state from the th_task_state of
the last of the older threads in the hot team.

Differential Revision: https://reviews.llvm.org/D142247
Fix #56307.




More information about the All-commits mailing list