[PATCH] D140158: [CUDA] Allow targeting NVPTX directly without a host toolchain
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 15 15:48:15 PST 2022
tra added a comment.
In D140158#3999810 <https://reviews.llvm.org/D140158#3999810>, @JonChesterfield wrote:
> I don't think we should assume they want implicit behaviour from other programming models thrown in.
Agreed. Also, removing things is often surprisingly hard.
Let's keep things simlpe, get this compilation mode to the point where it's practically usable, see what we really want/need, and then make those common cases the default or easier to use.
As far as libdevice is concerned, it's only needed for sources that use CUDA headers, as those map the standard math functions to their implementations in libdevice. Stand-alone sources should not need it. We should also be able to compile libdevice.bc into a libdevice.o and then link with it, if needed, during the final executable link phase.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140158/new/
https://reviews.llvm.org/D140158
More information about the cfe-commits
mailing list