Merged
修改混合 ub 内存排布图 #6077
wulinyuAdd on Sep 16
修改混合 ub 内存排布图 #6077
Merged
wulinyuAdd on Sep 16
wulinyu
wulinyuCollaborators
Sep 16

描述

更新混合编程场景的UB内存排布规则说明.

由于VF是串行执行的,在混合编程场景,各个VF间申请的静态内存,在编译期应该做好复用分配,保障UB内存利用率。
当前编译器已经支持复用功能,详细说明UB复用、排布、对齐规则。使用户能根据规则精确计算UB的剩余内存,提高编程易用性,保障UB资料不浪费。

关联的Issue

#1642

测试

功能验证OK,资料描述与功能一致

文档更新

docs/zh/guide/programming_guide/advanced_programming/advanced_ai_core_programming_model/simd_simt_hybrid_programming/memory_hierarchy.md

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for wulinyu's contribution.)
wulinyuwulinyuCollaborators
Sep 16 Created pull request, commit 8f873fa3
wulinyuwulinyuCollaborators
Sep 16 Associated issue: [Requirement|需求建议]:混合编程场景 同一个kernel内的VF间的申请的静态内存支持复用
atomgit-bot
atomgit-bot
Sep 16 Comments:

变更摘要

本 PR 为文档更新(📝 docs),围绕混合编程(SIMD/SIMT 混合)场景下的 UB 内存排布规则说明进行修订。由于 VF 是串行执行的,混合编程场景中各 VF 申请的静态内存在编译期应做好复用分配,以保障 UB 内存利用率。当前编译器已支持该复用功能,本次改动在 memory_hierarchy.md 中补充了 UB 复用、排布及对齐规则的详细说明,使用户能够依据规则精确计算 UB 剩余内存,提高编程易用性并避免 UB 资源浪费。

主要改动

  • 更新 UB 内存排布规则说明:在 docs/zh/guide/programming_guide/advanced_programming/advanced_ai_core_programming_model/simd_simt_hybrid_programming/memory_hierarchy.md 中修订混合编程场景下的 UB 内存排布图与规则描述,使资料与当前编译器实际功能保持一致。
  • 明确 VF 串行执行与静态内存复用机制:说明 VF 串行执行的特性下,各 VF 间申请的静态内存在编译期应复用分配,以提升 UB 内存利用率。
  • 补充 UB 复用、排布与对齐规则:新增对 UB 复用、排布和对齐规则的详细说明,帮助用户据此精确计算 UB 剩余内存,保障 UB 资源不被浪费。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 16 Comments:

🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 AI 代码审查。

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 16 Added label: stat/needs-squash
CANN-robotCANN-robotCollaborators
Sep 16 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 16 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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
docs ✅ ai_xin, louyuxuan (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

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

likedislike
CANN-robotCANN-robotCollaborators
Sep 16 Set zengjuan,zhanghao_0689,suqwe,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,hyolee,yukangchen as approver
CANN-robotCANN-robotCollaborators
Sep 16 Set bianque,munanhw,ai_xin,ascendhjh as approver
wulinyu
wulinyuCollaborators
Sep 16 Comments:

/compile

likedislike
wulinyuwulinyuCollaborators
Sep 16 Pre merge succeeded (commit_id: 713493b372aea2a6682b29f0cd924b7d758f4550)
gao_dafa
gao_dafaCollaborators
Sep 16 Comments:

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

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

代码责任田:

module committer
adv_api chenyiyuan, wuyang_hw
basic_api chenyiyuan, wuyang_hw
c_api pangfd, haipingmao
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-robot
CANN-robotCollaborators
Sep 16 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 16 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 16 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 16 Added label: ci-pipeline-passed
louyuxuan
louyuxuanCollaborators
Sep 16 Comments:

/lgtm

likedislike
ai_xin
ai_xinCollaborators
Sep 16 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 16 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Sep 16 Merged pull request