Merged
simt and simd best practice #2363
zc1110Add on May 21
simt and simd best practice #2363
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for zc1110's contribution.)May 21 Added label: stat/needs-squash
CANN-robot
May 21 Comments:
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 |
|---|---|---|
| examples | ✅ changxianyu, bluesky901 (2/2) | ✅ changxianyu (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhengchao0613, thanks for your pull request. All authors of the commits have signed the CLA. 👍


May 21 Added label: cann-cla/yes
May 21 updated PR
167 messages are collapsed here。 See more
bluesky901
May 28 Comments:
May 28 Comments:
/lgtm


May 28 Added label: lgtm
CANN-robot
May 28 Comments:
May 28 Comments:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: changxianyu.
Reviewers who wrote a comment of /lgtm are: bluesky901, changxianyu.


May 28 Merged pull request
May 28 Associated issue: [Requirement|需求建议]: 最佳实践样例开发
## 描述 本PR新增 `simt_and_simd_high_performance` 样例,以 FloorMod 计算为例,介绍 SIMD 与 SIMT 混合编程场景下的性能调优方法。 主要改动包括: - 新增 FloorMod 高性能优化样例,覆盖 4 个 `SCENARIO_NUM` 场景: - Case 0:SIMT 直接访问 GM。 - Case 1:SIMD RegBase 计算。 - Case 2:SIMT 访问 UB,但线程映射不连续。 - Case 3:SIMT 访问 UB,并通过调整线程映射实现 Warp 内访存合并。 ## 关联的Issue 无 ## 测试 已完成以下验证: - 对 `simt_and_simd_high_performance` 样例执行 4 个场景的编译验证: - `SCENARIO_NUM=0` - `SCENARIO_NUM=1` - `SCENARIO_NUM=2` - `SCENARIO_NUM=3` ## 文档更新 更新了以下文档: - `examples/01_simd_cpp_api/04_best_practices/03_fusion_compute_practices/README.md` - `examples/01_simd_cpp_api/04_best_practices/03_fusion_compute_practices/README_en.md` - `examples/01_simd_cpp_api/04_best_practices/03_fusion_compute_practices/simt_and_simd_high_performance/README.md` - `examples/01_simd_cpp_api/04_best_practices/03_fusion_compute_practices/matmul_gelu_high_performance/README.md` ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [x] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述