Merged
simt入门样例修改 #2405
simt入门样例修改 #2405
Merged
liuyi424Add on May 21
liuyi424Collaborators
May 21

描述

调整SIMT入门教程与样例结构,将Gather算子作为SIMT入门阶段的核心样例,并补充一维Gather基础样例。

主要改动包括:

  • 将原02_features/00_resource_management下的Gather相关样例移动到00_introduction/01_gather目录,使Gather样例归入SIMT入门教程。
  • 删除原00_introduction/01_add样例,避免入门教程继续以Add样例作为主线。
  • 新增gather_1d样例,展示一维Gather场景下基于SIMT线程进行离散访存的实现方式。
  • 调整原基础Gather样例为gather_2d,并更新对应CMake、README和可执行文件命名。
  • 保留并迁移general_gather样例,维持泛化Gather示例能力。
  • 更新SIMT入门教程、算子实践参考和编程示例中的文档链接,使其指向新的Gather教程与样例路径。
  • 对相关Gather样例中的部分实现和编译配置进行同步调整,统一使用CMAKE_ASC_ARCHITECTURES配置NPU架构。

关联的Issue

关联Issue #763

测试

文档更新

更新了SIMT相关入门教程和样例说明文档,包括:

  • SIMT Gather快速入门文档
  • SIMT算子实践参考文档
  • AI Core SIMT编程示例文档
  • examples/03_simt_api/00_introduction目录下的README
  • gather_1d、gather_2d、general_gather相关README

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liuyi424's contribution.)
Lliuyi424Collaborators
May 21 Created pull request, commit 24e444f7
CANN-robotCANN-robotCollaborators
May 21 Added label: stat/needs-squash
CANN-robot
CANN-robotCollaborators
May 21 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
docs ✅ ai_xin, wulinyu (2/2) ✅ ai_xin (1/1)
examples ✅ ai_xin, wulinyu (2/2) ✅ ai_xin (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
gao_dafaCollaborators
May 21 Comments:

liuyi424,感谢您的提交,建议在完成PR充分自验证后,再触发线上构建任务。

若您的PR已具备检视条件,可根据下表的责任田,@对应的committer进行代码检视,我们会在第一时间对您的提交进行处理。

代码责任田:

module committer
adv_api chenyiyuan, wuyang_hw
basic_api chenyiyuan, wuyang_hw
c_api pangfd, yue_mo_du_qian
cmake xun_zhuge, DragonBornHD84
docs munanhw, ai_xin
examples changxianyu, bianque
simt_api wulinyu, zhanghao_0689
scripts xun_zhuge, kevin365
tools YANXI_ZHAO, XuebinYang, sjtulxh

💡 如您不确定可以@谁,可以直接@我或者ascend-c sig的maintainer,xun_zhuge和ascendhjh,我们会为您分配合适的committer进行代码检视。

再次感谢您参与CANN的社区贡献。

likedislike
CANN-robotCANN-robotCollaborators
May 21 Added label: cann-cla/yes
129 messages are collapsed here。 See more
wulinyuCollaborators
May 28 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
May 28 Added label: lgtm
CANN-robot
CANN-robotCollaborators
May 28 Comments:

Review Guide

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

likedislike
CANN-robotCANN-robotCollaborators
May 28 Closed associated issue
CANN-robotCANN-robotCollaborators
May 28 Merged pull request