已开启
【代码侦探Challenge05】新增 MulCustom 逐元素乘法算子代码提交 #2840
gcw_JQJBklQH创建于 18 天前
【代码侦探Challenge05】新增 MulCustom 逐元素乘法算子代码提交 #2840
已开启
合并受阻
18 天前 创建了 pull request,commit 2f4f450c
atomgit-bot
18 天前 评论:
18 天前 评论:
atomgit-bot
18 天前 评论:
18 天前 评论:
18 天前 添加了label:cann-cla/yes
CANN-robot
18 天前 评论:
18 天前 评论:
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
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/cann-outreach | ❌ (0/2)(You can also ask: gcw_tgPdOLZT, yanyawen, 傅涛, jxlang, shaoyf) | ❌ (0/1)(You can also ask: yanyawen, 王艳秋, Carolina_yuan, gcw_tgPdOLZT, jxlang) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
gcw_JQJBklQH, thanks for your pull request. All authors of the commits have signed the CLA. 👍


gcw_JQJBklQH
18 天前 评论:
18 天前 评论:
/compile


gcw_JQJBklQH
18 天前 评论:
18 天前 评论:
@gcw_tgPdOLZT @yanyawen @fullt @jxlang @shaoyf,请帮忙检视!


gcw_JQJBklQH
17 天前 评论:
17 天前 评论:
/ai summary


gcw_JQJBklQH
17 天前 评论:
17 天前 评论:
/ai review


变更描述 / Description
新增 Challenge05-MulCustom 逐元素乘法算子(
z[i] = x[i] * y[i])的完整实现,提交至2026/CANN-Code-Detective/Challenge05-MulCustom/gcw_JQJBklQH/MulCustom/目录。主要改动:
mul_custom.asc算子实现:完成了KernelMul类的Init/Process/CopyIn/Compute/CopyOut五个方法,基于多核数据切分 + Double Buffer(BUFFER_NUM=2)的双缓冲流水线,实现
CopyIn → Compute → CopyOut三段式 Vector 编程范式;补充了mul_custom核函数入口(KERNEL_TASK_TYPE_DEFAULT(KERNEL_TYPE_AIV_ONLY))、Host 侧kernel_mul直调封装(ACL 初始化 / 设备内存申请 / H2D-D2H 搬运 / kernel 调用 / 资源释放)以及
main验证逻辑。CMakeLists.txt:构建脚本,与模板一致,无需修改。run.sh:编译运行脚本,与模板一致,无需修改。改动类型 / Change Type
测试信息 / Testing
在

Challenge05-MulCustom/gcw_JQJBklQH/MulCustom/目录下执行bash run.sh,输出如下(精度验证通过):
检查清单 / Checklist