about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2025-07-02 16:36:30 -0700
committerManuel Drehwald <git@manuel.drehwald.info>2025-07-18 16:30:42 -0700
commit4a1a5a42952d05533fd4309ad0f3fe290abbf57c (patch)
tree728fe4c846fdb1f36c3c0248a4410b25144cdc8f /compiler/rustc_codegen_llvm/src/back
parent5958ebe829429e3595e8211e6cb1b0328d515ab7 (diff)
downloadrust-4a1a5a42952d05533fd4309ad0f3fe290abbf57c.tar.gz
rust-4a1a5a42952d05533fd4309ad0f3fe290abbf57c.zip
gpu host code generation
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index b050a69eece..84302009da9 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -654,6 +654,7 @@ pub(crate) fn run_pass_manager(
     // We then run the llvm_optimize function a second time, to optimize the code which we generated
     // in the enzyme differentiation pass.
     let enable_ad = config.autodiff.contains(&config::AutoDiff::Enable);
+    let enable_gpu = config.offload.contains(&config::Offload::Enable);
     let stage = if thin {
         write::AutodiffStage::PreAD
     } else {