Pull Request has been successfully merged by CANN-robot.
(Thank you for flyingXLB's contribution.)🤖 正在生成合并请求摘要,请稍候…


🤖 AI 代码检视正在进行中,请稍候…


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


⚠️ 本次变更过大(88 个可审文件、67023 行,预估需 56 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


⚠️ 本次变更过大(88 个可审文件、67023 行,预估需 56 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


/compile


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


流水线分析报告 — asc-devkit run#7555
流水线: https://gitcode.com/cann/asc-devkit/actions/runs/3ecd42839442444baef6c18ef5ff4b15 | PR#7313 | 2026-11-09 15:40:24 ~ 15:43:52 | 失败 Job 1 个
定界结论: 代码问题 / 代码检查错误 — clang-format 格式不合规(88 个变更文件)
- 失败类型: 代码问题(由 PR 提交者修复)
- 根因:
CodeCheck_precommit的clang-formathook 检出 88 个变更的 C/C++ 源文件格式不符合仓库.clang-format规范(hook 报files were modified,随后以退出码 1 失败),位于include/c_api/(54 个.h)与examples/02_simd_c_api/(34 个.asc) - 处置建议: 在本地对本次变更文件执行
pre-commit run clang-format --files <变更文件>(或pre-commit run clang-format --all-files)完成格式化,确认改动后git add并重新推送;提交前建议整体跑一遍pre-commit run --all-files自查- 参考链接: 本地执行 pre-commit 指导
- 排除项:
trim trailing whitespace/fix end of files/check for added large files/check for merge conflicts/detect private key/codespell/OAT Compliance Check/Markdown link check均 Passed;ruff check、ruff format因无 Python 变更文件 Skipped;本 run 无编译、UT/ST 类 Job 失败,失败仅此 1 个 Job
失败根因分析
根因 #1: 代码问题 / 代码检查错误 — clang-format 检查 88 个文件未格式化
- 判据:
clang-format ... Failed+- files were modified by this hook - 定位步骤:
3_precommit.log(clang-format 结果段,第 141–232 行) - 影响 Job:
CodeCheck_precommit - 根因证据(日志原文):
clang-format.............................................................Failed
- hook id: clang-format
- files were modified by this hook
Formatting [1/4] include/c_api/experimental/asc_get_pipe_idle_slot_count.h
Formatting [2/4] include/c_api/reg_compute/scatter/ub_scatter.h
Formatting [3/4] examples/02_simd_c_api/03_c_api/00_data_movement/data_copy_l0c2ub/data_copy_l0c2ub.asc
Formatting [4/4] examples/02_simd_c_api/03_c_api/02_reg_vector_compute/gather/gather.asc
- 涉及文件分布(共 88 个:54 个
.h+ 34 个.asc):
| 目录 | 文件数 |
|---|---|
| examples/02_simd_c_api/03_c_api | 33 |
| include/c_api/reg_compute | 20 |
| include/c_api/vector_compute | 11 |
| include/c_api/composite | 5 |
| include/c_api/scalar_compute | 4 |
| include/c_api/utils | 3 |
| include/c_api/atomic | 2 |
| examples/02_simd_c_api/00_introduction | 2 |
| 其余 include/c_api/*(experimental、cache_ctrl、spr、vector_datamove、cube_datamove、sync、cube_compute) | 各 1 |
| examples/02_simd_c_api/02_features | 1 |
- 说明: 本次 PR 变更规模较大(2769 个文件,其中 docs 2505 / include 156 / examples 108),clang-format 对 264 个 C/C++ 变更文件执行检查,其中 88 个未按规范格式化。属确定性失败,重新触发流水线不会消失,需格式化后重新提交。
结构化定界摘要
[{"repo": "asc-devkit", "run_number": 7555, "Failed_Type": "代码问题", "Failed_Sub_Type": "代码检查错误", "Failed_Reason": "CodeCheck_precommit 的 clang-format hook 检出 88 个变更 C/C++ 文件(54 个 .h、34 个 .asc)格式不符合 .clang-format 规范,hook 修改文件后退出码 1 导致 Job 失败", "evidence": "clang-format.............................................................Failed - hook id: clang-format - files were modified by this hook", "suggestion": "本地对变更文件执行 pre-commit run clang-format 格式化后重新推送,提交前建议整体跑 pre-commit run --all-files 自查", "jobs": "CodeCheck_precommit"}]
由门禁失败定界分析自动生成 | repo: asc-devkit | run: 3ecd42839442444baef6c18ef5ff4b15 | PR#7313


/compile


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


/lgtm
/approve


/approve


/lgtm


/approve


/lgtm
/approve


/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: wuyang_hw


描述
本 PR 汇总 #6791–#6810 共 20 个类目 PR 的全部改动,合并为一个全量 PR(原 20 个 PR 保留不动)。内容已同步到最新 master(db4ca291e)并解决冲突。
为 C API(SIMD-API)全量接口补充 OKF 知识资产:
//! [prototype_id]):36 个样例覆盖类目:#6791 矩阵计算搬入、#6792 Mmad、#6793 矩阵计算搬出、#6794 Vec数据搬入、#6795 Vec数据搬出、#6796 基础算术、#6797 逻辑计算、#6798 复合计算、#6799 比较与选择、#6800 类型转换、#6801 规约计算、#6802 数据重组、#6803 排序组合、#6804 同步控制、#6805 标量计算、#6806 缓存控制、#6807 原子操作、#6808 全局变量访问、#6809 数据结构、#6810 公共。
本 PR 仅涉及文档元数据与源码注释,不改动接口声明、文档正文与样例逻辑。
冲突处理说明
关联的Issue
无
测试
.agent/skills/asc-knowledge-create/scripts/controller.py check:ok(errors=0)@override_id注解块无丢失;okf/capi-full(单个提交 5615a6010,base master@db4ca291e)CodeCheck_precommit:clang-format 18.1.8 校验通过(53 个变更头文件按仓库.clang-format折行注释,去注释后代码与 upstream master 一致;3 个样例中 6 条超过 120 列的超长//! [...]marker 行以// clang-format off/on保护,保持 marker 单行语法不被折行破坏)文档更新
docs/zh/api/SIMD-API/c_api/**:835 篇文档增加 5 字段 front matterinclude/c_api/**:52 个头文件增加 Doxygen 注解examples/02_simd_c_api/**:36 个样例增加 marker 标注类型标签