[Openmp-commits] [openmp] [OpenMP] Use a memory fence before incrementing the dispatch buffer index (PR #87995)

Xing Xue via Openmp-commits openmp-commits at lists.llvm.org
Wed Apr 10 08:08:08 PDT 2024


xingxue-ibm wrote:

> It is not clear to me what effect the memory barrier is supposed to have at this specific place with the oder two barriers a few lines above and below.
> 
> From my perspective the code shouldn't use volatile at all, but atomics where necessary.

Yeah, atomics probably works better and it is a good candidate for the future improvement.

https://github.com/llvm/llvm-project/pull/87995


More information about the Openmp-commits mailing list