Skip to content

[inductor] fix the decision of inner reduction#167697

Closed
shunting314 wants to merge 4 commits intogh/shunting314/262/basefrom
gh/shunting314/262/head
Closed

[inductor] fix the decision of inner reduction#167697
shunting314 wants to merge 4 commits intogh/shunting314/262/basefrom
gh/shunting314/262/head

Conversation

@shunting314
Copy link
Contributor

@shunting314 shunting314 commented Nov 13, 2025

Stack from ghstack (oldest at bottom):

Inductor may treat an outer reduction as inner reduction when the reduction ranges contains a 1. This cause some weird issue that we skip fusing with mix order reduction. While I'm still debugging why that happens, I think we should fix the decision here anyways

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

Differential Revision: D87788062

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/167697

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 4 Unrelated Failures

As of commit 6f6f780 with merge base b7f5277 (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

shunting314 added a commit that referenced this pull request Nov 13, 2025
ghstack-source-id: 698e03f
Pull Request resolved: #167697
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

The label module: inductor is only applicable to issues and has been removed. Please only use this label on issues.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

The label module: inductor is only applicable to issues and has been removed. Please only use this label on issues.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

[ghstack-poisoned]
shunting314 added a commit that referenced this pull request Nov 13, 2025
ghstack-source-id: c8d3bd4
Pull Request resolved: #167697
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

The label module: inductor is only applicable to issues and has been removed. Please only use this label on issues.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

The label module: inductor is only applicable to issues and has been removed. Please only use this label on issues.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

The label module: inductor is only applicable to issues and has been removed. Please only use this label on issues.

@shunting314 shunting314 added the topic: not user facing topic category label Nov 13, 2025
@shunting314
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 13, 2025
Inductor may treat an outer reduction as inner reduction when the reduction ranges contains a 1. This cause some weird issue that we skip fusing with mix order reduction. While I'm still debugging why that happens, I think we should fix the decision here anyways


cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

[ghstack-poisoned]
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
@shunting314
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@yangw-dev
Copy link
Contributor

@pytorchbot revert -m "break internal tests, need to include internal changes" -c ghfirst

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Nov 20, 2025
This reverts commit 689d731.

Reverted #167697 on behalf of https://github.com/yangw-dev due to break internal tests, need to include internal changes ([comment](#167697 (comment)))
@pytorchmergebot
Copy link
Collaborator

@shunting314 your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Nov 20, 2025
pytorch-bot bot pushed a commit that referenced this pull request Nov 21, 2025
Summary: reland #167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489
shunting314 added a commit to shunting314/pytorch that referenced this pull request Nov 22, 2025
Summary:

reland pytorch#167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489
@PaulZhang12
Copy link
Contributor

@PaulZhang12 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

pytorch-bot bot pushed a commit that referenced this pull request Nov 25, 2025
Summary:

reland #167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489
pytorch-bot bot pushed a commit that referenced this pull request Dec 1, 2025
Summary:

reland #167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489
pytorchmergebot pushed a commit that referenced this pull request Dec 1, 2025
Summary: reland #167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489

Pull Request resolved: #168391
Approved by: https://github.com/desertfire
@shunting314
Copy link
Contributor Author

shunting314 commented Dec 1, 2025

Relanded from fbcode #168391

@shunting314 shunting314 closed this Dec 1, 2025
JacobSzwejbka pushed a commit that referenced this pull request Dec 8, 2025
This reverts commit 689d731.

Reverted #167697 on behalf of https://github.com/yangw-dev due to break internal tests, need to include internal changes ([comment](#167697 (comment)))
JacobSzwejbka pushed a commit that referenced this pull request Dec 8, 2025
Summary: reland #167697 from fbcode.

Test Plan: CI and new tests.

Differential Revision: D87678489

Pull Request resolved: #168391
Approved by: https://github.com/desertfire
@github-actions github-actions bot deleted the gh/shunting314/262/head branch January 1, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants