Skip to content

Commit 62eed38

Browse files
committed
Auto merge of rust-lang#140064 - EnzymeAD:enable-autodiff-in-ci, r=<try>
[DO NOT MERGE] start building enzyme on x86_64-gnu-llvm-{19|20} builders My goal is to put this in CI on April 26, to have a week to land some of the outstanding PRs (removed # in front of it to avoid spamming them every time I do a try build in this PR): 139700 139308 139557 140030 140049 The autodiff flags PR should land first, but otherwise they don't overlap and are mostly ready, so it shouldn't be too hard to land them. In the meantime, I'll experiment here with some builders. r? `@oli-obk` Tracking: - rust-lang#124509 try-job: dist-x86_64-linux
2 parents b8005bf + 95d5d12 commit 62eed38

File tree

8 files changed

+5
-110
lines changed

8 files changed

+5
-110
lines changed

compiler/rustc_monomorphize/src/partitioning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ where
256256

257257
// We can't differentiate something that got inlined.
258258
let autodiff_active = cfg!(llvm_enzyme)
259+
&& matches!(mono_item, MonoItem::Fn(_))
259260
&& cx
260261
.tcx
261262
.codegen_fn_attrs(mono_item.def_id())

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ ENV RUST_CONFIGURE_ARGS \
9090
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
9191
--set llvm.thin-lto=true \
9292
--set llvm.ninja=false \
93+
--set llvm.plugins=true \
94+
--set llvm.enzyme=true \
9395
--set llvm.libzstd=true \
9496
--set rust.jemalloc \
9597
--set rust.use-lld=true \

src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ ENV RUST_CONFIGURE_ARGS \
3030
--enable-profiler \
3131
--enable-compiler-docs \
3232
--set llvm.libzstd=true
33+
--set llvm.plugins=true \
34+
--set llvm.enzyme=true \
3335
ENV SCRIPT python3 ../x.py --stage 2 test

tests/ui/autodiff/visibility.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/ui/autodiff/visibility.std_autodiff.stderr

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/ui/feature-gates/feature-gate-autodiff-use.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)