[llvm] [clang] [LinkerWrapper] Support relocatable linking for offloading (PR #80066)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 10:15:54 PST 2024


jhuber6 wrote:

> So, the idea is to carry two separate embedded offloading sections -- one for already fully linked GPU executables, and another for GPU objects to be linked at the final link stage.
> 

It's more or less doing `-fno-gpu-rdc` on a subset of files. So you can do GPU linking via `-fgpu-rdc` for a handful and then merge them together so nothing else will link with it as if you did `-fno-gpu-rdc`.

> > We also use a sepcial section called something like omp_offloading_entries
> 
> Typo in 'special' in the description.

Thanks, will fix.



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


More information about the cfe-commits mailing list