8000 autodiff: emit an error if we fail to find libEnzyme by ZuseZ4 · Pull Request #150060 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ZuseZ4
Copy link
Member
@ZuseZ4 ZuseZ4 commented Dec 16, 2025

Tested manually by moving libEnzyme-21.so away. We should adjust the error msg. once we have the component up.

It's the first usage within rustc of this experimental feature, but afaik we're open to dogfooding those for test purpose, right?

r? @Kobzol

@rustbot
Copy link
Collaborator
rustbot commented Dec 16, 2025

Kobzol is not on the review rotation at the moment.
They may take a while to respond.

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. F-autodiff `#![feature(autodiff)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 16, 2025
@ZuseZ4 ZuseZ4 force-pushed the autodiff-dlopen-ice branch from 7d320f5 to 691c726 Compare December 16, 2025 13:38
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-dlopen-ice branch from 691c726 to f36fcd4 Compare December 16, 2025 13:50
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-dlopen-ice branch from f36fcd4 to 90fe221 Compare December 16, 2025 14:06
Copy link
Member
@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand it correctly get_or_init has a side-effect of loading the Enzyme dylib, so it's fine to call it and just drop the result?

View changes since this review

@ZuseZ4 ZuseZ4 force-pushed the autodiff-dlopen-ice branch 2 times, most recently from 7e1462d to 29cb8fa Compare December 16, 2025 19:09
@Kobzol
Copy link
Member
Kobzol commented Dec 16, 2025

You can r=me once CI is green.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-dlopen-ice branch from 29cb8fa to 793d990 Compare December 16, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. F-autodiff `#![feature(autodiff)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0