[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:25:53 PDT 2025


b-sumner wrote:

> > HIP does not only not need the C device runtime,
> 
> It does. The language bakes in the assumption that all of the libc and libm calls exist in the ambient environment. 

In host code yes, in device code it certainly does not.  A hip programmer has absolutely no expectation that they can call pread() or any other of a large number libc of functions from device code.  Furthermore, we have no accepted proposal for an extension to hip to support libc functions.   This kind of extension requires deeper review and discussion and awareness than permitted by a LLVM pull request.



https://github.com/llvm/llvm-project/pull/151046


More information about the cfe-commits mailing list