已合并
[Inductor] bugfix/rms norm simd multi reduction #39499
luqichao创建于 6月29日
[Inductor] bugfix/rms norm simd multi reduction #39499
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 luqichao 的贡献)ascend-robot
6月29日 评论:
6月29日 评论:
6月29日 添加了label:ascend-cla/yes
ascend-robot
6月29日 评论:
6月29日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| test | ✅ crazyDannyBoy, TonyYA, rain-666 (3/2) | ✅ crazyDannyBoy (1/1) |
| torch_npu/_inductor | ✅ crazyDannyBoy, rain-666, TonyYA (3/2) | ✅ crazyDannyBoy (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
luqichao, thanks for your pull request. All authors of the commits have signed the CLA. 👍


6月29日 添加了label:needs-issue
此处折叠了199条消息 查看更多
ascend-robot
7月3日 评论:
7月3日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


luqichao
7月3日 评论:
7月3日 评论:
/sync v2.9.0-26.1.0


ascend-robot
7月3日 评论:
7月3日 评论:
In response to this:
/sync v2.9.0-26.1.0
同步操作执行结果:
| Branch | Status | Pull Request |
|---|---|---|
| v2.9.0-26.1.0 | 创建同步 PR | https://gitcode.com/Ascend/pytorch/merge_requests/39999 |


ascend-robot
7月3日 评论:
7月3日 评论:
流水线 pytorch_gitcode_PR_multiVersion#11813 [ commitID:834411ee ] 已完成


7月3日 added a commit that referenced this pull request
- 7df061a6 - [sync] PR-39499: [Inductor] bugfix/rms norm simd multi reduction
Co-authored-by: luqichao
# message auto-generated for no-merge-commit merge:
!39999 merge sync-pr39499-bugfix/rms_norm_codegen_29-to-v2.9.0-26.1.0 into v2.9.0-26.1.0
[sync] PR-39499: [Inductor] bugfix/rms norm simd multi reduction
Created-by: ascend-ds-bot
Commit-by: luqichao
Merged-by: ascend-robot
Description:
### 1. Origin pull request:
https://gitcode.com/Ascend/pytorch/merge_requests/39499
### 2. Original pull request related issue(s):
https://gitcode.com/Ascend/pytorch/issues/2543
### 3. Original pull request related commit(s):
| Sha | Datetime | Message |
|---|---|---|
|[834411ee](https://gitcode.com/Ascend/pytorch/commit/834411ee9a2a7f2911d376e9e95fa8ee55b1ecee)|2026-07-02 19:52:47 +0800 CST|fix rms norm reduction
| See merge request: Ascend/pytorch!39999- [#39499](https://gitcode.com/Ascend/pytorch/merge_requests/39499)
7月3日 added a commit that referenced this pull request
- 7df061a6 - [sync] PR-39499: [Inductor] bugfix/rms norm simd multi reduction
Co-authored-by: luqichao
# message auto-generated for no-merge-commit merge:
!39999 merge sync-pr39499-bugfix/rms_norm_codegen_29-to-v2.9.0-26.1.0 into v2.9.0-26.1.0
[sync] PR-39499: [Inductor] bugfix/rms norm simd multi reduction
Created-by: ascend-ds-bot
Commit-by: luqichao
Merged-by: ascend-robot
Description:
### 1. Origin pull request:
https://gitcode.com/Ascend/pytorch/merge_requests/39499
### 2. Original pull request related issue(s):
https://gitcode.com/Ascend/pytorch/issues/2543
### 3. Original pull request related commit(s):
| Sha | Datetime | Message |
|---|---|---|
|[834411ee](https://gitcode.com/Ascend/pytorch/commit/834411ee9a2a7f2911d376e9e95fa8ee55b1ecee)|2026-07-02 19:52:47 +0800 CST|fix rms norm reduction
| See merge request: Ascend/pytorch!39999- [#39499](https://gitcode.com/Ascend/pytorch/merge_requests/39499)
最小用例
问题DSL
做了以下修复:
[non-reduction axes, reduction axes]调整轴顺序,保证tl.sum沿正确 reduction lane 执行。tl.sum维度与 flatten 后布局一致。修复后DSL: