[llvm-branch-commits] [llvm] AMDGPU: Expand flat atomics that may access private memory (PR #109407)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 20 22:07:17 PDT 2024


arsenm wrote:

> Is it legal and defined behavior to target private memory with an atomic?

In the IR it would have to be, and this is the expected behavior in OpenMP and C++. It's UB in OpenCL, and UB in CUDA/HIP for old style atomics, but defined for new std::atomic style cases 


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


More information about the llvm-branch-commits mailing list