[llvm] [RFC] IR: Define noalias.addrspace metadata (PR #102461)

Harald van Dijk via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 04:18:18 PDT 2024


hvdijk wrote:

> This is not true for CUDA, an LLVM IR atomic instruction on thread private memory is fine.

Are you sure? The CUDA C++ Programming Guide appears to agree that atomic functions cannot act on private memory. From 10.14. Atomic Functions:

> An atomic function performs a read-modify-write atomic operation on one 32-bit, 64-bit, or 128-bit word residing in global or shared memory.

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


More information about the llvm-commits mailing list