Use -mlink-builtin-bitcode instead of llvm-link to link
device library so that device library bitcode and user
device code can be compiled in a consistent way.
This is the same approach used by CUDA and OpenMP.
Paths
| Differential D60513
[HIP] Use -mlink-builtin-bitcode to link device library ClosedPublic Authored by yaxunl on Apr 10 2019, 8:04 AM.
Details Summary Use -mlink-builtin-bitcode instead of llvm-link to link This is the same approach used by CUDA and OpenMP.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 10 2019, 10:54 AM Closed by commit rL358290: [HIP] Use -mlink-builtin-bitcode to link device library (authored by yaxunl). · Explain WhyApr 12 2019, 9:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 194904 cfe/trunk/lib/Driver/ToolChains/HIP.cpp
cfe/trunk/test/Driver/hip-device-libs.hip
cfe/trunk/test/Driver/hip-toolchain-no-rdc.hip
cfe/trunk/test/Driver/hip-toolchain-rdc.hip
|