[PATCH] D129655: [CUDA] Allow the new driver to compile CUDA in non-RDC mode

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 13 12:13:52 PDT 2022


jhuber6 added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:6998-6999
+    CmdArgs.push_back(CudaDeviceInput->getFilename());
+    if (IsRDCMode)
+      CmdArgs.push_back("-fgpu-rdc");
+  } else if (IsCuda && !HostOffloadingInputs.empty() && !IsRDCMode) {
----------------
Why do we add `-fgpu-rdc` here when it's already added on line 6322 above?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129655/new/

https://reviews.llvm.org/D129655



More information about the cfe-commits mailing list