Merged
修复完善资料与样例中存在的问题 #7253
UFOunderAdd on 23 days ago
修复完善资料与样例中存在的问题 #7253
Merged
UFOunderAdd on 23 days ago
UFOunder
UFOunderCollaborators
23 days ago

描述

修复完善资料与样例中存在的问题:
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

测试

样例上板精度通过。

文档更新

见描述

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for UFOunder's contribution.)
UFOunderUFOunderCollaborators
23 days ago Created pull request, commit 4b387551
UFOunderUFOunderCollaborators
23 days ago Associated issue: 文档反馈-内容错误(正确性)-split in N dimension, N must be multiples of 32.,[Documentation|文档反馈]: asc_copy_l12l0b_2d_arch_3510 未链接 load_data_l12l0_950 样例,示例未标注 A×Bᵀ
atomgit-bot
atomgit-bot
23 days ago Comments:

变更摘要

本 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 中补充不同接口使用场景的详细描述。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
23 days ago Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
23 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
23 days ago 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 ✅ munanhw, Lycheeeee (2/2) ✅ munanhw (1/1)
examples ✅ munanhw, Lycheeeee (2/2) ✅ munanhw (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robotCollaborators
23 days ago updated PR
CANN-robotCANN-robotCollaborators
23 days ago Set xun_zhuge,bianque,YANXI_ZHAO,munanhw,ai_xin,ascendhjh,changxianyu as approver
UFOunder
UFOunderCollaborators
23 days ago Comments:

compile

likedislike
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: 971e38fa5e3765b5356fd002510c11b71bc42d0c)
CANN-robot
CANN-robotCollaborators
23 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
23 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
23 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
23 days ago Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
23 days ago Comments:

流水线分析报告 — 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

likedislike
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: 36fa4ad85ecd39f1d71b6e8986d69cdf09330d57)
UFOunderUFOunderCollaborators
23 days ago Pushed 1 commits:b5352140-修改
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: d805a31f74bfd221da0d1f47e64fab0d5e3e3eb8)
CANN-robotCANN-robotCollaborators
23 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
23 days ago Added label: stat/needs-squash
CANN-robotCANN-robotCollaborators
23 days ago Added label: cann-cla/yes
UFOunder
UFOunderCollaborators
23 days ago Comments:

compile

likedislike
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: a23134361fc421c4a10e0a58c0bd474f011b5c9b)
CANN-robot
CANN-robotCollaborators
23 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
23 days ago Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
23 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
23 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
23 days ago Added label: ci-pipeline-passed
munanhw
munanhwCollaborators23 days agoStart code review2
docs/zh/api/SIMD-API/c_api/cube_datamove/cube_compute_load/asc_copy_l12l0a_2d_arch_3510.md
Outdated
@@ -47,0 +52,4 @@
52+| A | `M×K` | `asc_copy_l12l0a` | `C = A × B` |
53+| Aᵀ,即预先转置的A | `K×M` | `asc_copy_l12l0a_transpose` | `C = A × B` |
54+ 
55+L0A Buffer使用Nz分形排布,应结合源矩阵的实际布局选择接口,不能仅根据接口名中的`transpose`判断最终乘法方向。B侧也需根据实际输入布局选择对应的L1到L0B搬运接口。转置搬运仍需满足本页参数说明和约束说明中的分形、对齐及空间要求。
munanhw
munanhw23 days agoComments:

L1到L0B 写完整

likedislike
System
System MessageSystem
23 days ago Comments:

changed this line on e5b79cff view diff detail

likedislike
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: 310bac51f8689413d71569d265a016aaff1e7842)
UFOunderUFOunderCollaborators
23 days ago Pushed 1 commits:e5b79cff-修改
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: 2a4768249cc8af20a9a8a53801aaf6ea295466bd)
UFOunder
UFOunderCollaborators
23 days ago Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
23 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
23 days ago Removed label: ci-pipeline-passed
UFOunderUFOunderCollaborators
23 days ago Pre merge succeeded (commit_id: 8c6ccf67c41d26a96ce842e79c676ad8eed8da2c)
CANN-robot
CANN-robotCollaborators
23 days ago Comments:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robotCANN-robotCollaborators
23 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
23 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
23 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
22 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
22 days ago Added label: ci-pipeline-passed
munanhwmunanhwCollaborators
22 days ago Resolved final issue
munanhw
munanhwCollaborators
22 days ago Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
22 days ago Added label: approved
Lycheeeee
LycheeeeeCollaborators
22 days ago Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
22 days ago Added label: lgtm
CANN-robotCANN-robotCollaborators
22 days ago Merged pull request