Skip to content

Dist Enzyme for macOS with unversioned LLVM dylib#151063

Draft
sgasho wants to merge 4 commits intorust-lang:mainfrom
sgasho:aarch64-dist-enzyme
Draft

Dist Enzyme for macOS with unversioned LLVM dylib#151063
sgasho wants to merge 4 commits intorust-lang:mainfrom
sgasho:aarch64-dist-enzyme

Conversation

@sgasho
Copy link
Contributor

@sgasho sgasho commented Jan 13, 2026

View all comments

Follow-up to #152768.

  • Link LLVM dynamically on MacOS
  • Fix a macOS LLVM dylib name mismatch
  • Dist Enzyme for MacOS

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jan 13, 2026
@sgasho sgasho changed the title Add dist step for enzyme including aarch64-apple-darwin Add dist step for enzyme, including aarch64-apple-darwin Jan 13, 2026
@ZuseZ4
Copy link
Member

ZuseZ4 commented Jan 13, 2026

@bors delegate try

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

Unknown command "delegate". Run @bors help to see available commands.

@ZuseZ4
Copy link
Member

ZuseZ4 commented Jan 13, 2026

Hmm, not sure about the exact syntax, but delegate itself should have been recognized, maybe not ported to the new bots yet? I'll let Jakub handle it.
For now

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 13, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@Kobzol
Copy link
Member

Kobzol commented Jan 13, 2026

@bors delegate=try

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

✌️ @sgasho, you can now perform try builds on this pull request!

You can now post @bors try to start a try build.

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

☀️ Try build successful (CI)
Build commit: a658070 (a65807068ca7fef2605b24756206b9e5dfa49bbd, parent: db1484bdee1cb065b322a5bd512b39c49dadc9e5)

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 14, 2026

☔ The latest upstream changes (presumably #150541) made this pull request unmergeable. Please resolve the merge conflicts.

@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from 30f87bc to 31d3fde Compare January 17, 2026 03:41
@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 17, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@rustbot rustbot added the F-autodiff `#![feature(autodiff)]` label Jan 17, 2026
@rust-log-analyzer

This comment has been minimized.

@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from bc7b483 to 98144d4 Compare January 17, 2026 07:21
@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 17, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 17, 2026

💔 Test for 2c9be7e failed: CI. Failed job:

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 24, 2026
rust-timer added a commit that referenced this pull request Feb 24, 2026
Rollup merge of #152768 - ZuseZ4:autodiff-in-ci-for-all-os, r=Kobzol

Enable autodiff in ci for all major os

*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/152768)*

Follow-up attempt to #140064 after moving autodiff to dlopen.
It covers Linux (x86_64+aarch64), MacOS (aarch64), Windows (mingw-llvm aarch64+x86_64)
The extra build time for Enzyme are 180.27s on our slowest runner (aarch64-apple).

The follow-up distribution via rustup probably still needs a small fix, see #151063 (comment)

Placing the downloaded libEnzyme artifact on my local linux under `~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib` enables my nightly compiler to run autodiff.

r? @Kobzol

closes: #140064
closes: #151243
closes: #151063
@ZuseZ4 ZuseZ4 reopened this Mar 2, 2026
@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 2, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 3, 2026
@bjorn3 bjorn3 reopened this Mar 3, 2026
@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 3, 2026
@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from b176c34 to cf6a8fe Compare March 9, 2026 15:12
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Mar 9, 2026
@sgasho sgasho changed the title Add dist step for enzyme, including aarch64-apple-darwin Use unversioned LLVM dylib name on macOS Mar 9, 2026
@sgasho sgasho changed the title Use unversioned LLVM dylib name on macOS Dist Enzyme for macOS with unversioned LLVM dylib Mar 9, 2026
@sgasho
Copy link
Contributor Author

sgasho commented Mar 9, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 9, 2026
Dist Enzyme for macOS with unversioned LLVM dylib


try-job: dist-aarch64-apple
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 9, 2026

💔 Test for d9e7df3 failed: CI. Failed job:

@rust-log-analyzer

This comment has been minimized.

@sgasho
Copy link
Contributor Author

sgasho commented Mar 10, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 10, 2026
Dist Enzyme for macOS with unversioned LLVM dylib


try-job: dist-aarch64-apple
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 10, 2026

💔 Test for aac8c8c failed: CI. Failed job:

@rust-log-analyzer

This comment has been minimized.

@sgasho
Copy link
Contributor Author

sgasho commented Mar 11, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 11, 2026

⌛ Trying commit 6eb69e1 with merge 3b095cd

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/22959532534

rust-bors bot pushed a commit that referenced this pull request Mar 11, 2026
Dist Enzyme for macOS with unversioned LLVM dylib


try-job: dist-aarch64-apple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-CI Area: Our Github Actions CI A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc F-autodiff `#![feature(autodiff)]` S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants