[flang-commits] [flang] [llvm] [flang-rt] Enable more runtime functions for the GPU target (PR #183649)
Joseph Huber via flang-commits
flang-commits at lists.llvm.org
Fri Feb 27 06:27:57 PST 2026
jhuber6 wrote:
> LGTM
>
> We could still extract `executionEnvironment` into a separate file, but since it works as-is, this could be done afterwards. For now, this should unblock the gpu built since #182918
That's curious, I guess this is something that differs from C where `malloc(0)` is an implementation defined failure AFAIK. Obviously, doing the actual allocations on the GPU is quite expensive. AMDGPU has a general purpose `malloc`. I never got around to enabling it from NVPTX despite it working there too because I figured someone from NVIDIA should do that if they wanted it, right now it goes to NVIDIA's malloc.
https://github.com/llvm/llvm-project/pull/183649
More information about the flang-commits
mailing list