Merged
add aligned_type example #2297
CaiBinbinAdd on May 19
add aligned_type example #2297
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for CaiBinbin's contribution.)CANN-robot
May 19 Comments:
May 19 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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
qq_39172959, thanks for your pull request. All authors of the commits have signed the CLA. 👍


May 19 Added label: cann-cla/yes
May 19 updated PR
May 19 Set xun_zhuge,bianque,YANXI_ZHAO,munanhw,ai_xin as approver
172 messages are collapsed here。 See more
docs/guide/算子实践参考/SIMT算子性能优化/内存访问/通过类型对齐提升搬运效率.md
@@ -0,0 +69,4 @@
69+| 16B | 32983.77 (alignof=4) | 38353.60 (alignof=4) | **1.16x** |
70+| 32B | 60901.24 (alignof=4) | 77790.93 (alignof=4) | **1.28x** |
71+
72+测试结果表明:**在数据总量不变的时候,相同大小的结构体,类型对齐可以提升搬运效率**。以4B结构体为例,随着对齐位宽从1B提升至4B,非对齐相对对齐的耗时倍数逐步下降。8B结构体受编译器自动优化影响,无论是否对齐,均以8B位宽完成搬运。此外,同大小的4B结构体,字段组合形式、有无填充位,都不会对搬运效率产生影响。
Jun 1 Added label: lgtmapproved
CANN-robot
Jun 1 Comments:
Jun 1 Comments:
The MR can not be merged, because of CodeReview discussion not resolved
If you want to solve this problem, you can click here to do it in the FAQs.


Jun 1 Merged pull request
描述
新增SIMT最佳实践样例:通过类型对齐提升搬运效率
关联的Issue
测试
线下样例测试通过
文档更新
类型标签