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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 12:09:22 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.
----------------
jhuber6 wrote:

So, the current behavior is that it will "always" set the PTX in the job and optionally include it in the `fatbinary` job depending on those settings.

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


More information about the cfe-commits mailing list