To support linking device code in different source files, it is necessary to
embed fat binary at host linking stage.
This patch emits an external symbol for fat binary in host codegen, then
embed the fat binary by lld through a linker script.
Differential D46472
[HIP] Support offloading by linker script yaxunl on May 4 2018, 2:09 PM. Authored by
Details To support linking device code in different source files, it is necessary to This patch emits an external symbol for fat binary in host codegen, then
Diff Detail Event TimelineComment Actions The IRGen aspects of this seem reasonable, modulo a comment change. I don't feel qualified to judge the driver change.
Comment Actions LGTM except for minor suggestions.
|