commit | 4fa148d581ad590a33a303508983200cd92e56b4 | [log] [tgz] |
---|---|---|
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | Mon Jul 21 08:26:35 2025 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jul 21 06:30:38 2025 -0700 |
tree | f7845dc382d931ca9ef3467cc8b4d8d6cb152192 | |
parent | 357916197cad0d28213db475e191699742aeaff0 [diff] |
[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(); \ } ``` GitOrigin-RevId: c9fe19a99bf41c165524dcb3e9ff939527b5178b