[CUDA] Allow the new driver to compile CUDA in non-RDC mode
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 13 Jul 2022 15:25:31 +0000 (11:25 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 14 Jul 2022 01:49:15 +0000 (21:49 -0400)
commitb370be37cca760122903f1e202952fecf5182cc1
tree543e79f0783077a7bbe67bd8deb02013326f97bb
parent403d61aeddec87fd210ee1425658f22367fc088a
[CUDA] Allow the new driver to compile CUDA in non-RDC mode

The new driver primarily allows us to support RDC-mode compilations with
proper linking. This is not needed for non-RDC mode compilation, but we
still would like the new driver to be able to handle this mode so we can
transition away from the old driver in the future. This patch adds the
necessary code to support creating a fatbinary for CUDA code generation
as well as removing old assumptions and errors about RDC-mode with the
new driver.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D129655
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/CodeGenCUDA/offloading-entries.cu
clang/test/Driver/cuda-omp-unsupported-debug-options.cu
clang/test/Driver/cuda-openmp-driver.cu
clang/test/Driver/cuda-phases.cu