[clang] [HIP] Link the LLVM libc libraries in no-RDC mode (PR #151046)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 07:02:13 PDT 2025
b-sumner wrote:
> The new driver, which hopefully be the default in HIP soonish, handles all the offloading languages more or less the same. We link these libraries by default since they're used by OpenMP and the other languages inherit that code since the implementation is totally generic.
If this driver was really designed for all language runtimes then it should have designed in the fact that languages have different runtime libraries. HIP does not only not need the C device runtime, it doesn't need the OpenMP device runtime nor the fortran device runtime. I think languages should opt in to the libraries they need not opt out.
https://github.com/llvm/llvm-project/pull/151046
More information about the cfe-commits
mailing list