[flang-commits] [flang] [flang][cuda] Inline scalar-to-array assignments in CUDA Fortran device code at -O0 (PR #221333)
Zhen Wang via flang-commits
flang-commits at lists.llvm.org
Fri Sep 4 14:46:58 PDT 2026
wangzpgi wrote:
> > > What is expected for a `attributes(host,device)` function?
> >
> >
> > Not covered — `cuf::isCUDADeviceContext` is false for `host_device`. Should I extend it? The host copy would be inlined too.
>
> It would be nice to extended it and not to problematic since a host, device function is still very specific to cuda. At least add a test so we know it is not inlined win that case.
Extended to `attributes(host,device)`. Note this inlines the host copy too, since the pass runs before the device copy is outlined. Added test.
https://github.com/llvm/llvm-project/pull/221333
More information about the flang-commits
mailing list