Merged
提供SIMT性能优化样例:访存合并,bank冲突 #1753
提供SIMT性能优化样例:访存合并,bank冲突 #1753
Merged
liuyi424Add on Apr 23
liuyi424Collaborators
Apr 23

描述

本样例以矩阵转置为例,介绍基于Ascend C SIMT编程方式的性能调优思路。样例包含一个测试性能上限的基准版本以及3个逐步优化的kernel版本,从最基础的数据复制与直接转置开始,逐步引入UB中转、全局访存合并以及通过padding降低UB Bank冲突的优化方法,展示SIMT编程方式的调优思路。

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liuyi424's contribution.)
Lliuyi424Collaborators
Apr 23 Created pull request, commit 1e956238
CANN-robot
CANN-robotCollaborators
Apr 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
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
CANN-robotCANN-robotCollaborators
Apr 23 Added label: cann-cla/yes
CANN-robotCANN-robotCollaborators
Apr 23 Set zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,YANXI_ZHAO,shi_nanxiang,wuyang_hw,munanhw,ai_xin,ascendhjh,DragonBornHD84,jiangZD as approver
CANN-robotCANN-robotCollaborators
Apr 23 Set xun_zhuge,bianque,YANXI_ZHAO,munanhw,ai_xin as approver
96 messages are collapsed here。 See more
wulinyuCollaborators
May 14 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
May 14 Added label: lgtm
CANN-robot
CANN-robotCollaborators
May 14 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 14 Merged pull request
Lliuyi424Collaborators
May 15 Associated issue: [Requirement|需求建议]: 新增【AscendC样例】SIMT最佳实践类——内存优化类,矩阵转置