已开启
【代码侦探Challenge05】新增 MulCustom 逐元素乘法算子代码提交 #2840
gcw_JQJBklQH创建于 18 天前
【代码侦探Challenge05】新增 MulCustom 逐元素乘法算子代码提交 #2840
已开启
gcw_JQJBklQH创建于 18 天前
gcw_JQJBklQH
gcw_JQJBklQH
18 天前

变更描述 / 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,输出如下
(精度验证通过):
2792faff42df92c021c19bc7677d5286.png

检查清单 / Checklist

likedislike
合并受阻
gcw_JQJBklQHgcw_JQJBklQH
18 天前 创建了 pull request,commit 2f4f450c
atomgit-bot
atomgit-bot
18 天前 评论:

🤖 AI Code Review

⚠️ 审查未能完成

本次代码审查未能完成,可能是临时性故障。

你可以在评论区输入 /ai summary 重新发起审查。若多次失败,请联系管理员并附上下方追踪 ID。

追踪 ID: task-256634-run-243101

likedislike
不准确?
atomgit-bot
atomgit-bot
18 天前 评论:

🤖 AI Code Review

⚠️ 审查未能完成

本次代码审查未能完成,可能是临时性故障。

你可以在评论区输入 /ai review 重新发起审查。若多次失败,请联系管理员并附上下方追踪 ID。

追踪 ID: task-256635-run-243102

likedislike
不准确?
CANN-robotCANN-robot成员
18 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
gcw_JQJBklQH
gcw_JQJBklQH
18 天前 评论:

/compile

likedislike
gcw_JQJBklQH
gcw_JQJBklQH
18 天前 评论:
likedislike
gcw_JQJBklQH
gcw_JQJBklQH
17 天前 评论:

/ai summary

likedislike
gcw_JQJBklQH
gcw_JQJBklQH
17 天前 评论:

/ai review

likedislike