[all-commits] [llvm/llvm-project] c9fe19: [OpenMP] Improve performance of ticket lock (x86) ...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Mon Jul 21 06:26:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9fe19a99bf41c165524dcb3e9ff939527b5178b
      https://github.com/llvm/llvm-project/commit/c9fe19a99bf41c165524dcb3e9ff939527b5178b
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

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

  Log Message:
  -----------
  [OpenMP] Improve performance of ticket lock (x86) (#143557)

Ticket lock has a yield operation (shown below) which degrades
performance on larger server machines due to an unconditional pause
operation.

```
#define KMP_YIELD(cond)                                                        \
  {                                                                            \
    KMP_CPU_PAUSE();                                                           \
    if ((cond) && (KMP_TRY_YIELD))                                             \
      __kmp_yield();                                                           \
  }
```



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