[clang] [CUDA] Include PTX in non-RDC mode using the new driver (PR #84367)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 12:02:07 PST 2024


================
@@ -4625,7 +4625,15 @@ Action *Driver::BuildOffloadingActions(Compilation &C,
       DDeps.add(*A, *TCAndArch->first, TCAndArch->second.data(), Kind);
       OffloadAction::DeviceDependences DDep;
       DDep.add(*A, *TCAndArch->first, TCAndArch->second.data(), Kind);
+
+      // Compiling CUDA in non-RDC mode uses the PTX output if available.
----------------
Artem-B wrote:

Do we still respect `--cuda-include-ptx=...` ?



https://github.com/llvm/llvm-project/pull/84367


More information about the cfe-commits mailing list