llvm-project
1cb85dd4 - [Flang][OpenMP] Clear close on descriptor members for box parents in USM (#194287)

Commit
75 days ago
[Flang][OpenMP] Clear close on descriptor members for box parents in USM (#194287) Extend the MapInfoFinalization walk introduced in #185330 so parent/member close consistency is enforced whenever unified_shared_memory is in effect, not only when the parent map's variable is a fir.RecordType. Allocatable (box) roots expand to member maps the same way as derived-type instances; getDescriptorMapType may add OMP_MAP_CLOSE to implicit descriptor members while the parent map does not set close, which led to bad device behavior under -fopenmp-force-usm with multiple mapped allocatables. PR stack: - https://github.com/llvm/llvm-project/pull/194287 (this one) - https://github.com/llvm/llvm-project/pull/194291 Co-authored-by: Composer (Cursor) <ai@cursor.com>
Author
Kareem Ergawy
Parents
Loading