[Openmp-commits] [PATCH] D97079: [OpenMP] libomp: eliminate pause from atomic CAS loops

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 19 14:24:00 PST 2021


JonChesterfield added a comment.

I think this is architecture specific.

If a CAS failed spuriously, then immediately retry is good. If it failed because another core wrote to the cache line, then we have established that said cache line is somewhat contended, in which case pause() may let the other threads progress faster.

This might be difficult to microbenchmark.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97079/new/

https://reviews.llvm.org/D97079



More information about the Openmp-commits mailing list