[PATCH] D120272: [CUDA] Add driver support for compiling CUDA with the new driver
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 26 10:31:11 PDT 2022
jhuber6 updated this revision to Diff 425261.
jhuber6 added a comment.
Changing this to simply require that the user manually passes `-fgpu-rdc` in order to use the new driver. I think this makes more sense in the short term and we can move to make the new driver the default rdc approach later. I tested this and the following should workd,
clang foo.cu -fgpu-rdc -foffload-new-driver -c
clang bar.cu -c
clang foo.o bar.o -fgpu-rdc -foffload-new-driver
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120272/new/
https://reviews.llvm.org/D120272
Files:
clang/include/clang/Basic/Cuda.h
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/cuda-openmp-driver.cu
clang/test/Driver/cuda-phases.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120272.425261.patch
Type: text/x-patch
Size: 14497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220426/8e7f838c/attachment.bin>
More information about the cfe-commits
mailing list