about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-10 16:38:23 +0100
committerGitHub <noreply@github.com>2025-02-10 16:38:23 +0100
commit78f5bddd57e8eabd0a71efd5fe59005a7b2a87c1 (patch)
tree0682ab2b0a7d130f9d52774b15efdae826785685 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent8c04e395952022a451138dc4dbead6dd6ae65203 (diff)
parent061abbc36928cce784c54463c266f4d43d14d419 (diff)
downloadrust-78f5bddd57e8eabd0a71efd5fe59005a7b2a87c1.tar.gz
rust-78f5bddd57e8eabd0a71efd5fe59005a7b2a87c1.zip
Rollup merge of #136419 - EnzymeAD:autodiff-tests, r=onur-ozkan,jieyouxu
adding autodiff tests

I'd like to get started with upstreaming some tests, even though I'm still waiting for an answer on how to best integrate the enzyme pass. Can we therefore temporarily support the -Z llvm-plugins here without too much effort? And in that case, how would that work? I saw you can do remapping, e.g. `rust-src-base`, but I don't think that will give me the path to libEnzyme.so. Do you have another suggestion?

Other than that this test simply checks that the derivative of `x*x` is `2.0 * x`, which in this case is computed as
`%0 = fadd fast double %x.0.val, %x.0.val`
(I'll add a few more tests and move it to an autodiff folder if we can use the -Z flag)

r? ``@jieyouxu``

Locally at least `-Zllvm-plugins=${PWD}/build/x86_64-unknown-linux-gnu/enzyme/build/Enzyme/libEnzyme-19.so` seems to work if I copy the command I get from x.py test and run it manually. However, running x.py test itself fails.

Tracking:

- https://github.com/rust-lang/rust/issues/124509

Zulip discussion: https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Enzyme.20build.20changes
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions