Skip to content

Commit 7cd3881

Browse files
committed
Auto merge of rust-lang#136428 - EnzymeAD:enable-autodiff, r=<try>
test building enzyme in CI We will later need to make it more granular before merging, but let's start by figuring out how many things we break right now in the first place. For now I modified `src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile`, so let's try that dist job first. try-job: dist-x86_64-linux try-job: x86_64-gnu r? `@oli-obk` Tracking: - rust-lang#124509
2 parents 6171d94 + 1065988 commit 7cd3881

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

compiler/rustc_builtin_macros/src/autodiff.rs

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ mod llvm_enzyme {
242242
defaultness: ast::Defaultness::Final,
243243
sig: d_sig,
244244
generics: Generics::default(),
245+
contract: None,
245246
body: Some(d_body),
246247
});
247248
let mut rustc_ad_attr =

config.example.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
#tests = false
8080

8181
# Indicates whether the LLVM plugin is enabled or not
82-
#plugins = false
82+
#plugins = true
8383

8484
# Whether to build Enzyme as AutoDiff backend.
85-
#enzyme = false
85+
#enzyme = true
8686

8787
# Whether to build LLVM with support for it's gpu offload runtime.
8888
#offload = false

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ ENV RUST_CONFIGURE_ARGS \
8989
--set target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
9090
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
9191
--set llvm.thin-lto=true \
92+
--set llvm.plugins=true \
93+
--set llvm.enzyme=true \
9294
--set llvm.ninja=false \
9395
--set llvm.libzstd=true \
9496
--set rust.jemalloc \

0 commit comments

Comments
 (0)