[flang-commits] [flang] [flang][OpenMP] Allocate `allocatable` init temps on the stack for GPUs (PR #164761)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Oct 23 05:26:50 PDT 2025
tblah wrote:
> Is it legal to reallocate/deallocate the private ALLOCATABLE on the device? If so, I am not sure this would work after your patch.
Good point.
@ergawy note that even in cases when the OpenMP standard says explicit reallocation is not allowed (I haven't checked this case), there can still be implicit reallocations due to assignments (this has caught me out before). You will have to take care that these do not try to `free()` the stack allocation.
https://github.com/llvm/llvm-project/pull/164761
More information about the flang-commits
mailing list