[all-commits] [llvm/llvm-project] 0e0bee: [OpenMP] Fix distributed barrier hang for OMP_WAIT...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Tue Feb 27 12:15:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e0bee26e7f33c065eebef9a674b2f19bb156414
      https://github.com/llvm/llvm-project/commit/0e0bee26e7f33c065eebef9a674b2f19bb156414
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M openmp/runtime/src/kmp_runtime.cpp
    A openmp/runtime/test/barrier/llvm-issue-80664.c

  Log Message:
  -----------
  [OpenMP] Fix distributed barrier hang for OMP_WAIT_POLICY=passive (#83058)

The resume thread logic inside __kmp_free_team() is faulty. Only
checking b_go for sleep status doesn't wake up distributed barrier.
Change to generic check for th_sleep_loc and calling
__kmp_null_resume_wrapper().

Fixes: #80664



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list