Commit c9fe19a
Jonathan Peyton
[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(); \
}
```1 parent 8ba341e commit c9fe19a
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | 715 | | |
721 | 716 | | |
722 | 717 | | |
723 | | - | |
724 | | - | |
725 | 718 | | |
726 | 719 | | |
727 | 720 | | |
| |||
0 commit comments