Merged
fix(Pass): Revise the tile expansion logic of index_add #1898
CatherieAdd on Mar 23
fix(Pass): Revise the tile expansion logic of index_add #1898
Merged
CatherieAdd on Mar 23
Catherie
CatherieCollaborators
Mar 23

fix(Pass): Revise the tile expansion logic of index_add
https://gitcode.com/cann/pypto/issues/600

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for Catherie's contribution.)
CatherieCatherieCollaborators
Mar 23 Created pull request, commit 42ec950a
CatherieCatherieCollaborators
Mar 23 Associated issue: [Task|任务跟踪]: 增加pass编译性能优化的skill
CANN-robot
CANN-robotCollaborators
Mar 23 Comments:

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
repo-cann/pypto ✅ zhangyuebing, cam_bxh (2/2) ✅ zhangyuebing (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

Catherie, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
Catherie
CatherieCollaborators
Mar 23 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Mar 23 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,WenboCodes as approver
CANN-robot
CANN-robotCollaborators
Mar 23 Comments:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CANN-robotCANN-robotCollaborators
Mar 23 Added label: cann-cla/yes
CANN-robotCANN-robotCollaborators
Mar 23 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Mar 23 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Mar 23 Comments:

流水线任务触发成功
任务链接 [ed1d6aaa5e544240ab47f7cffb83e359][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
UT_Test_Py3_ninja_simulation ✅ SUCCESS
UT_Test_Py3_ninja ✅ SUCCESS
UT_Test_Cpp_make_clang ✅ SUCCESS
UT_Test_Cpp_make_gnu ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_1 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_2 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_3 ✅ SUCCESS
UT_Test_report ✅ SUCCESS >>>>>
Smoke_A900 ✅ SUCCESS >>>>> >>>>>

[2026-03-23 21:58:39]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Mar 23 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Mar 23 Added label: ci-pipeline-passed
CatherieCatherieCollaborators
Mar 24 Pre merge succeeded (commit_id: 83210fa0368ee04029c08d73644cd51b48cb5e33)
CatherieCatherieCollaborators
Mar 24 Force-pushed 26 commits:4c193316-25 commits from branch master,e0017f3e-Revise the tile expansion logic of index_add
CatherieCatherieCollaborators
Mar 24 Pre merge succeeded (commit_id: ae54347363a44a2c89917c2d3a739527ba618014)
CANN-robotCANN-robotCollaborators
Mar 24 Removed label: ci-pipeline-passed
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CatherieCatherieCollaborators
Mar 24 Modify description of pull request
CatherieCatherieCollaborators
Mar 24 Associated milestone: 0.2.0
Catherie
CatherieCollaborators
Mar 24 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Mar 24 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

流水线任务触发成功
任务链接 [18d3c217b7c34ab78dd047547e007625][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
UT_Test_Py3_ninja_simulation ✅ SUCCESS
UT_Test_Py3_ninja ✅ SUCCESS
UT_Test_Cpp_make_clang ✅ SUCCESS
UT_Test_Cpp_make_gnu ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_1 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_2 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_3 ✅ SUCCESS
UT_Test_report ✅ SUCCESS >>>>>
Smoke_A900 ✅ SUCCESS >>>>> >>>>>

[2026-03-24 20:38:55]    CI执行结束

likedislike
CatherieCatherieCollaborators
Mar 24 Modify description of pull request
CANN-robotCANN-robotCollaborators
Mar 24 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Mar 24 Added label: ci-pipeline-passed
CatherieCatherieCollaborators
Mar 24 Modify description of pull request
zhangxiangjie
zhangxiangjieCollaboratorsMar 24Start code review3
framework/src/interface/operation/vector/indexing.cpp
Outdated
@@ -138,2 +153,3 @@
138- // srcInput在axis的维度=indicesInput的维度,且可能比selfInput.shape[axis]大
153+ 
154+ // 非 axis 维度正常切分
139155 for (int i = 0; i < indexaddPara.srcInput->GetShape()[cur]; i += tmpTile) {
zhangxiangjie
zhangxiangjieMar 24Comments:

i不应该是int类型,shape和tmpTile都是int64_t类型,下面offset也是int64_t类型

likedislike
System
System MessageSystem
Mar 24 Comments:

changed this line on 3e83cb29 view diff detail

likedislike
Catherie
CatherieCollaborators
Mar 24 Comments:

已修改

likedislike
CatherieCatherieCollaborators
Mar 24 Pre merge succeeded (commit_id: 49139bc5595b38d6fcc0c6a7adf847197c407876)
CatherieCatherieCollaborators
Mar 24 Force-pushed 1 commits:3e83cb29-Revise the tile expansion logic of index_add
CatherieCatherieCollaborators
Mar 24 Pre merge succeeded (commit_id: 2ea8721f52f07b776f2fed3c46e70f37be5f78a3)
CANN-robotCANN-robotCollaborators
Mar 24 Removed label: ci-pipeline-passed
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
Catherie
CatherieCollaborators
Mar 24 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Mar 24 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Mar 24 Comments:

流水线任务触发成功
任务链接 [5823adaeb9474819b903c692f052bc5d][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
UT_Test_Py3_ninja_simulation ✅ SUCCESS
UT_Test_Py3_ninja ✅ SUCCESS
UT_Test_Cpp_make_clang ✅ SUCCESS
UT_Test_Cpp_make_gnu ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_1 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_2 ✅ SUCCESS
UT_Test_Cpp_make_gnu_part_3 ✅ SUCCESS
UT_Test_report ✅ SUCCESS >>>>>
Smoke_A900 ✅ SUCCESS >>>>> >>>>>

[2026-03-24 22:08:11]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Mar 24 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Mar 24 Added label: ci-pipeline-passed
zhangxiangjiezhangxiangjieCollaborators
Mar 25 Resolved final issue
zhangxiangjie
zhangxiangjieCollaborators
Mar 25 Comments:

/lgtm

likedislike
CANN-robot
CANN-robotCollaborators
Mar 25 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
zhangxiangjie

likedislike
zhangyuebing
zhangyuebingCollaborators
Mar 25 Comments:

/approve

likedislike
CANN-robot
CANN-robotCollaborators
Mar 25 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
zhangxiangjie

likedislike
CANN-robotCANN-robotCollaborators
Mar 25 Added label: approved
Hujun
HujunCollaborators
Mar 25 Comments:

/lgtm

likedislike
CANN-robot
CANN-robotCollaborators
Mar 25 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
zhangxiangjie

likedislike
CANN-robotCANN-robotCollaborators
Mar 25 Added label: lgtm
CANN-robot
CANN-robotCollaborators
Mar 25 Comments:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zhangyuebing.
Reviewers who wrote a comment of /lgtm are: cam_bxh, zhangyuebing.

likedislike
CANN-robotCANN-robotCollaborators
Mar 25 Merged pull request