Added -cuda-uses-libdevice option to enable extra steps:
- Selectively link in and internalize required symbols from bitcode library.
Depends on D11663
Paths
| Differential D11664
[CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode. ClosedPublic Authored by tra on Jul 30 2015, 2:58 PM.
Details Summary Added -cuda-uses-libdevice option to enable extra steps:
Depends on D11663
Diff Detail Event Timeline
tra updated this object. Comment ActionsUpdated the patch to use bitcode linker to perform selective linking and internalizing. This revision is now accepted and ready to land.Sep 1 2015, 11:08 AM Comment Actions Inline comment.
tra updated this object. tra edited edge metadata. Comment ActionsAssume (and test) that NVPTX back-end includes NVVMReflect by default. Closed by commit rL247317: [CUDA] Postprocess bitcode linked in during device-side CUDA compilation. (authored by tra). · Explain WhySep 10 2015, 11:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 33713 include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCUDA/Inputs/device-code.ll
test/CodeGenCUDA/link-device-bitcode.cu
|
Can you explain this in a different way perhaps? I'm not sure what you mean here.