[PATCH] D140158: [CUDA] Allow targeting NVPTX directly without a host toolchain
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 16 07:26:23 PST 2023
jhuber6 updated this revision to Diff 489554.
jhuber6 added a comment.
Updating. Used a different method to determine if we need to use `.cubin` or `.o`. It's a little ugly but I don't think there's a better way to do it.
Also I just realized that if this goes through I could probably heavily simplify linker wrapper code by just invoking `clang --target=nvptx64` instead of calling the tools manually. So that's another benefit to this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140158/new/
https://reviews.llvm.org/D140158
Files:
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.h
clang/test/Driver/cuda-cross-compiling.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140158.489554.patch
Type: text/x-patch
Size: 28363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230116/9d30a0dc/attachment-0001.bin>
More information about the cfe-commits
mailing list