Skip to content

Conversation

@sgasho
Copy link

@sgasho sgasho commented Jan 17, 2026

rustc already embeds LLVM and having two copies of them can cause std::autodiff to hang.

dependencies: rust-lang/rust#151243

I need to update Enzyme submodule on r-l/r after merging this PR. you can merge rust-lang/rust#151243 after that.

ZuseZ4 and others added 3 commits September 17, 2025 19:44
Co-authored-by: Lorenz Schmidt <bytesnake@mailbox.org>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: William Moses <gh@wsmoses.com>
* Add Rust CI

* Use ccache

* Limit matrix

* Disable macos for now
@sgasho sgasho changed the title Use dynamic lookup to prevent Enzyme from embedding its own copy of LLVM on macOS Use dynamic lookup to prevent Enzyme from embedding its own copy of LLVM on APPLE Jan 17, 2026
@sgasho
Copy link
Author

sgasho commented Jan 17, 2026

This change is only for std::autodiff, so I think this PR should be here, not in the upstream(EnzymeAD/Enzyme)

@ZuseZ4
Copy link
Member

ZuseZ4 commented Jan 20, 2026

I'd offer to upstream it later (probably under an extra flag), since there could be Enzyme users with a similar setup to us.
However, for now we should work here, so we don't have to wait for them to find time to review this.

From previous discussions, I remember we shouldn't need 09f4820 anymore, now that we're libloading Enzyme, right? Can you please add a revert of 09f4820 as the first commit to your PR, and then apply your patches? If we can create working linux and macos artifacts with that branch, I can (finally) drop it from our fork.

@sgasho sgasho force-pushed the disable-static-linking-llvm-apple branch from cfeb2d0 to 123ab0b Compare January 22, 2026 15:34
@sgasho
Copy link
Author

sgasho commented Jan 22, 2026

Yes, I reverted 09f4820 and confirmed autodiff works fine using CI tarballs at the PR rust-lang/rust#151063

Can you please add a revert of 09f4820 as the first commit to your PR, and then apply your patches?

Yes, I did it and force-pushed!

@sgasho
Copy link
Author

sgasho commented Jan 23, 2026

I think I can close this because the commit below includes dynamic lookup on APPLE

eb72baf

@sgasho sgasho closed this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants