Skip to content
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

fix autodiff compile time regression #136413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZuseZ4
Copy link
Contributor

@ZuseZ4 ZuseZ4 commented Feb 2, 2025

Tries to fix the regression from #133429

Tracking:

@rustbot
Copy link
Collaborator

rustbot commented Feb 2, 2025

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added 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 Feb 2, 2025
@ZuseZ4
Copy link
Contributor Author

ZuseZ4 commented Feb 2, 2025

Well fair enough, if I add r? @oli-obk in the homu-ignore section it will be ignored.

@rustbot rustbot assigned oli-obk and unassigned petrochenkov Feb 2, 2025
@rust-log-analyzer

This comment has been minimized.

@workingjubilee workingjubilee assigned oli-obk and unassigned oli-obk Feb 2, 2025
@workingjubilee
Copy link
Member

derp.

@ZuseZ4 ZuseZ4 force-pushed the fix-autodiff-comptime-regression branch from 7c259f9 to 199ef41 Compare February 2, 2025 01:27
@workingjubilee
Copy link
Member

@bors try

@bors
Copy link
Contributor

bors commented Feb 2, 2025

⌛ Trying commit 199ef41 with merge 719d8b8...

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
…ssion, r=<try>

test autodiff compile time fixes

Tries to fix the regression from rust-lang#133429
@traviscross traviscross mentioned this pull request Feb 2, 2025
7 tasks
@bors
Copy link
Contributor

bors commented Feb 2, 2025

☀️ Try build successful - checks-actions
Build commit: 719d8b8 (719d8b829f49aa1a90d25afcf05631f8db213bc4)

@workingjubilee
Copy link
Member

@rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 2, 2025
@lqd
Copy link
Member

lqd commented Feb 2, 2025

@rust-timer build 719d8b8

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (719d8b8): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-30.3% [-30.7%, -29.8%] 4
Improvements ✅
(secondary)
-30.0% [-31.9%, -28.2%] 2
All ❌✅ (primary) -30.3% [-30.7%, -29.8%] 4

Max RSS (memory usage)

Results (secondary -2.2%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.2% [-2.2%, -2.2%] 1
All ❌✅ (primary) - - 0

Cycles

Results (primary -31.0%, secondary -10.4%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.4% [2.3%, 5.6%] 3
Improvements ✅
(primary)
-31.0% [-31.3%, -30.3%] 4
Improvements ✅
(secondary)
-31.3% [-32.8%, -29.7%] 2
All ❌✅ (primary) -31.0% [-31.3%, -30.3%] 4

Binary size

Results (primary -0.1%, secondary 0.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 3
Regressions ❌
(secondary)
0.6% [0.6%, 0.6%] 2
Improvements ✅
(primary)
-0.4% [-0.4%, -0.4%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.1% [-0.4%, 0.0%] 4

Bootstrap: 777.275s -> 777.68s (0.05%)
Artifact size: 328.69 MiB -> 328.71 MiB (0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 2, 2025
@ZuseZ4
Copy link
Contributor Author

ZuseZ4 commented Feb 2, 2025

Bingo.

@ZuseZ4
Copy link
Contributor Author

ZuseZ4 commented Feb 2, 2025

We had a 43% primary regression, and here a 30% primary improvement.
143%*0.7=100.1%
Looks like my math lectures weren't completely useless.

@ZuseZ4 ZuseZ4 changed the title test autodiff compile time fixes fix autodiff compile time regression Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

9 participants