Pull Request已成功合入, 合并人@CANN-robot
(感谢 cheyunfei 的贡献)变更摘要
本 PR 为文档更新,针对 asc_copy_gm2ub 和 asc_copy_ub2gm 两个函数在文档示例中参数数量与说明不符的问题进行修正。根据 9.1.0 版本中 asc_copy_gm2ub 函数的介绍,其最高维切分搬运参数表最多仅有 6 个参数,但文档示例中却给出了 7 个参数,且这 7 个参数针对不同场景不能共存。本次改动将示例中的参数列表由 7 个修正为 6 个,使其与函数定义及说明保持一致。
主要改动
- 修正
asc_copy_gm2ub示例参数列表: 将文档示例中多出的 1 个参数移除,使示例参数数量由 7 个改为与函数介绍一致的 6 个。 - 修正
asc_copy_ub2gm示例参数列表: 同步调整asc_copy_ub2gm的示例参数,去除不能与其他参数共存的多余参数,确保示例与函数实际签名相符。 - 更新 C-API 编程文档: 修改
基于语言扩展层C-API编程.md中的函数示例,消除文档示例与函数介绍在参数个数上的矛盾。


🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 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 |
|---|---|---|
| 9.1.0 | ✅ 田晓亮, munanhw (2/2) | ✅ 田晓亮 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
bite986, thanks for your pull request. All authors of the commits have signed the CLA. 👍


bite986,感谢您的提交,建议在完成PR充分自验证后,再触发线上构建任务。
若您的PR已具备检视条件,可根据下表的责任田,@对应的committer进行代码检视,我们会在第一时间对您的提交进行处理。
代码责任田:
| module | committer |
|---|---|
| adv_api | chenyiyuan, wuyang_hw |
| basic_api | chenyiyuan, wuyang_hw |
| c_api | pangfd, haipingmao |
| cmake | xun_zhuge, DragonBornHD84 |
| docs | munanhw, ai_xin |
| examples | changxianyu, bianque |
| simt_api | wulinyu, zhanghao_0689 |
| scripts | xun_zhuge, kevin365 |
| tools | YANXI_ZHAO, XuebinYang, sjtulxh |
💡 如您不确定可以@谁,可以直接@我或者ascend-c sig的maintainer,xun_zhuge和ascendhjh,我们会为您分配合适的committer进行代码检视。
再次感谢您参与CANN的社区贡献。


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


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


描述
按照9.1.0版本中asc_copy_gm2ub函数的介绍,最多的高维切分搬运参数表也仅有6个。但是举例中确有7个,这7个参数针对不同情况是不能共存的。
关联的Issue
关联Issue #1520
测试
测试样例:examples/02_simd_c_api/00_introduction/01_add/c_api_delicacy_async_add/c_api_add.asc,其中参数列表即为6个

文档更新
更新了文档:编程指南/编程模型/AI-Core-SIMD编程/基于指针的C语言编程/基于语言扩展层C-API编程.md
类型标签