已开启
[Code Detective Challenge 04] 完成 DivCustomTemplate 工程化算子开发 #2116
[Code Detective Challenge 04] 完成 DivCustomTemplate 工程化算子开发 #2116
已开启
aodebiao创建于 7 天前
aodebiao
aodebiao
7 天前

当前PR是否有AI参与:

[x] 否
[ ] 是

PR功能描述 / 为什么需要这个合入:

完成 CANN Code Detective Challenge 04:DivCustomTemplate 工程化算子开发。

  • 使用 msopgen 基于 div_custom_template.json 生成算子工程
  • op_kernel/div_custom_template.cpp:实现 Ascend C 矢量除法核函数 z = x / y,采用双缓冲 + tile 分块(每 tile 1024 元素),支持 float16/float32
  • op_host/div_custom_template.cpp:完成 tiling 计算(8 核并行,每核 2048 元素)、InferShape、InferDataType 及算子注册
  • op_host/div_custom_template_tiling.h:定义 totalLength、tileLength、dataType 三个 tiling 字段

该PR关联的issue:

希望检视人员了解:

算子工程目录结构说明:

  • op_kernel/:device 侧核函数实现(Ascend C)
  • op_host/:host 侧算子注册、InferShape、Tiling 计算
  • framework/:框架适配插件(tf_plugin,自动生成)
  • run.sh:一键编译、安装、测试脚本

改动类型 / Change Type

测试信息 / Testing

测试结果:
result is:
0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5
test pass

检查清单 / Checklist

likedislike
合并受阻
aodebiaoaodebiao
7 天前 创建了 pull request,commit e49450e8
atomgit-bot
atomgit-bot
7 天前 评论:

🤖 正在生成合并请求摘要,请稍候…

likedislike
atomgit-bot
atomgit-bot
7 天前 评论:

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

likedislike
CANN-robot
CANN-robot成员
7 天前 评论:

Hi @gxhgxh2475698, welcome to submitting your first PR to cann-outreach!

PR Merge Steps

1. CLA Signing

If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.

2. CI Check

Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.

3. Code Review

After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
7 天前 评论:

CLA Signature Pass

gxhgxh2475698, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
7 天前 评论:

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.
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: 田晓亮, luzx66, li-shengxian3, 王艳秋, 傅涛) ❌ (0/1)(You can also ask: yanyawen, jxlang, Carolina_yuan, 王艳秋, gcw_tgPdOLZT)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
aodebiao
aodebiao
7 天前 评论:

/compile

likedislike
atomgit-bot
atomgit-bot
7 天前 评论:

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

likedislike
atomgit-bot
atomgit-bot
7 天前 评论:

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

likedislike
aodebiaoaodebiao
7 天前 update merge request[project id: 9865789, iid: 2116, commit_id: 7237ec314d5ec4e10eb9be9d21473891276a2273] virtual merging success
此处折叠了8条事件消息 查看更多
CANN-robotCANN-robot成员
7 天前 删除了label:ai-co-authoredai-includes-code
aodebiao
aodebiao
7 天前 评论:

/compile

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:ai-compliance-failed
CANN-robot
CANN-robot成员
7 天前 评论:

AI Declaration Check Failed

@gxhgxh2475698, the PR description is missing the AI tool usage declaration. Please add the AI tool and model used. ⚠️

likedislike
aodebiaoaodebiao
7 天前 修改了pull request 的描述
CANN-robotCANN-robot成员
7 天前 删除了label:ai-compliance-failed
aodebiao
aodebiao
7 天前 评论:

/compile

likedislike