[all-commits] [llvm/llvm-project] b370be: [CUDA] Allow the new driver to compile CUDA in non...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 13 18:49:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b370be37cca760122903f1e202952fecf5182cc1
      https://github.com/llvm/llvm-project/commit/b370be37cca760122903f1e202952fecf5182cc1
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGenCUDA/offloading-entries.cu
    M clang/test/Driver/cuda-omp-unsupported-debug-options.cu
    M clang/test/Driver/cuda-openmp-driver.cu
    M clang/test/Driver/cuda-phases.cu

  Log Message:
  -----------
  [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




More information about the All-commits mailing list