-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto #152496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
6daf565 to
f3db21d
Compare
This comment has been minimized.
This comment has been minimized.
f3db21d to
c89a89b
Compare
| // In the case of debug builds with multiple codegen units, we might not | ||
| // have all function definitions available during the early compiler | ||
| // invocations. We therefore wait for the final lto step to run Enzyme. | ||
| if (EnzymePtr && IsLTO) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could have checked for fat-lto only, since that's what we require atm. But it seems to work atm. and every once in a while I experiment with lowering our requirements from fat to thin lto, so I think it's fine.
|
I had expected we already did this given that fat LTO is mandatory. @bors r+ |
|
We used to, but the change from static/dynamic linking of Enzyme to dlopen broke it. I had forgotten to add the run-make autododiff tests to our docs, and we don't run them in CI by default, so we just didn't notice. |
…jorn3 Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto fixes: rust-lang#152470 r? @bjorn3
…jorn3 Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto fixes: rust-lang#152470 r? @bjorn3
…uwer Rollup of 11 pull requests Successful merges: - #146901 (Support AVRTiny devices in AVR inline assembly) - #150988 (Improve code suggestion for incorrect macro_rules! usage) - #152422 (Change query proc macro to be more rust-analyzer friendly) - #152496 (Fix multi-cgu+debug builds using autodiff by delaying autodiff till lto) - #152520 (Don't use `DepContext` in `rustc_middle::traits::cache`) - #152528 (Support serializing CodegenContext) - #152082 (Move tests) - #152444 (`-Znext-solver` Prevent committing unfulfilled unsized coercion) - #152486 (remove redundant backchain attribute in codegen) - #152529 (sparc64: enable abi compatibility test) - #152548 (reject inline const patterns pre-expansion)
fixes: #152470
r? @bjorn3