Pull Request has been successfully merged by CANN-robot.
(Thank you for UFOunder's contribution.)变更摘要
本 PR 主要修正样例与资料中的若干问题:在 examples/01_simd_cpp_api/03_basic_api/03_matrix_compute/fixpipe_l0c2ub 样例中调整跨核同步的调用顺序,使副块不再在等待同步标志之前提前返回;同时补充 ms_sanitizer 样例 README 关于 memcheck 与 synccheck 的说明,并修正、完善 L0C_to_UB 双目标模式与 asc_copy_l12l0b_2d_arch_3510 相关文档中的约束描述与接口使用场景说明。
主要改动
- 跨核同步顺序调整:将
AscendC::CrossCoreWaitFlag<0x2>(0x8)前移到AscendC::GetSubBlockIdx() != 0判断之前,使副块也先完成同步等待再退出,避免同步异常。 - 样例 README 补充:
examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer的 README 增加memcheck与synccheck的介绍。 - 约束描述修正:修正
docs/zh/api/SIMD-API/basic_api/cube_compute_ISASI/cube_store_key_features/L0C_to_UB_dual_target_mode.md中关于N的约束说明。 - 接口场景说明完善:在
docs/zh/api/SIMD-API/c_api/cube_datamove/cube_compute_load/asc_copy_l12l0b_2d_arch_3510.md中补充不同接口使用场景的详细描述。


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 | ✅ munanhw, Lycheeeee (2/2) | ✅ munanhw (1/1) |
| examples | ✅ munanhw, Lycheeeee (2/2) | ✅ munanhw (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
UFOunder, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


流水线分析报告 — asc-devkit run#7377
流水线: https://gitcode.com/cann/asc-devkit/actions/runs/68a5af814f1241a6903ff480717a6286 | PR#7253 | 2026-11-05 16:20:38 ~ 2026-11-05 16:24:06 | 失败 Job 1 个
定界结论: 代码问题 / 代码检查错误 — 双语文档未同步
- 失败类型: 代码问题
- 根因: 双语配对修改检查失败:PR 修改了中文版
README.md,但未同步修改对应英文版README_en.md - 处置建议: 通知 PR 提交者补充修改英文版文档后重新触发流水线
- 排除项: 无平台/环境类错误(二进制检查、空文件检查均通过)
失败根因分析
根因 #1: 代码问题 / 代码检查错误 — 未同步文件: examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README.md
- 判据: 双语配对修改检查失败(中英文文档需成对修改)
- 定位步骤:
3_check-pr.log - 影响文件:
examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README.md,examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README_en.md - 影响 Job: CodeCheck_check-pr
- 根因证据(日志原文):
ERROR | examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README.md 被修改了,但 examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README_en.md 未在本次 PR 中同步修改
ERROR | 双语配对修改检查失败,共 1 个文件缺失对应版本
[ERROR] 20261105-162143 Check asc-devkit md files is failed.
- 说明: 本次 PR 中另一组双语 README(fixpipe_l0c2ub)已正确成对修改并通过检查,仅 ms_sanitizer 一组未同步。
结构化定界摘要
[{"repo": "asc-devkit", "run_number": 7377, "Failed_Type": "代码问题", "Failed_Sub_Type": "代码检查错误", "Failed_Reason": "PR 修改了 examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README.md,但未同步修改对应的 README_en.md,双语配对修改检查失败", "evidence": "ERROR | examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README.md 被修改了,但 examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer/README_en.md 未在本次 PR 中同步修改", "suggestion": "补充修改 ms_sanitizer/README_en.md 使其与中文版同步后重新触发流水线", "jobs": "CodeCheck_check-pr"}]
由门禁失败定界分析自动生成 | repo: asc-devkit | run: 68a5af814f1241a6903ff480717a6286 | PR#7253


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


L1到L0B 写完整


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/lgtm


描述
修复完善资料与样例中存在的问题:
1、样例 examples/01_simd_cpp_api/03_basic_api/03_matrix_compute/fixpipe_l0c2ub 代码实现中存在同步异常;
2、样例 examples/02_simd_c_api/01_utilities/05_sanitizer/ms_sanitizer 中README介绍未提及memcheck与synccheck;
3、资料 docs/zh/api/SIMD-API/basic_api/cube_compute_ISASI/cube_store_key_features/L0C_to_UB_dual_target_mode.md 中N的约束描述错误;
4、资料 docs/zh/api/SIMD-API/c_api/cube_datamove/cube_compute_load/asc_copy_l12l0b_2d_arch_3510.md 中缺少对不同接口使用场景的详细描述;
关联的Issue
https://gitcode.com/cann/asc-devkit/issues/1989
https://gitcode.com/cann/asc-devkit/issues/1990
测试
样例上板精度通过。
文档更新
见描述
类型标签