[flang-commits] [flang] [flang][acc] Don't treat a managed pointer descriptor as device data (PR #222769)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Sep 10 17:47:27 PDT 2026


clementval wrote:

> A managed CUDA data attribute on a pointer describes the storage of the descriptor itself, not the target it designates.

This is not really true. The attribute is meant to define the data memory space. The descriptor itself is always in managed memory unless it's a global. In that case we have a double descriptor. One on the host and one on the device and it requires synchronization. 
What we do not check, it's associating a managed pointer with data that is not managed. 

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


More information about the flang-commits mailing list