已合并
适配 BatchMatmul 与 Matmul 样例至 cannbotdsl 0.7 #127
ykxxlzhong创建于 12 天前
适配 BatchMatmul 与 Matmul 样例至 cannbotdsl 0.7 #127
已合并
ykxxlzhong创建于 12 天前
ykxxlzhong
12 天前

当前PR是否有AI参与:

  1. AI Agent 平台: opencode (CANNBot)
  2. AI 模型: GLM
  3. Prompt上下文: cannbotdsl 0.7 样例适配

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

适配新版 CANNBot-DSL(0.7)接口,更新 matmul 族样例:

  • batch_matmul:run 入口由 @jit 迁移 @host(0.7 强制 DSL 调用层级,@jit 仅作 inline helper);tile_view 统一更名 tile_slice;导入迁移至 0.7 子模块约定(cannbotdsl.tensor / cannbotdsl.ops.memcpy);README 的 AOT 入口由 run.compile() 更新为 cannbotdsl.compile(op.run, *specs)。
  • matmul:同步 cannbot-arena main 的 0.7 适配版本——@host 入口、tile_slice、Channel 显式 produce()/consume()、静态 copy engine(去除 dtype/pad_value 参数)。

希望检视人员了解:

  • batch_matmul 的 Channel produce/consume 与 tile_slice 用法原已符合 0.7 风格,本次核心修复为 @host 入口(否则报 Illegal DSL call)
  • matmul.py 与 cannbot-arena main(b7af8b4, 2026-09-27)逐字节一致

改动类型 / Change Type

测试信息 / Testing

  • test/matmul/batch_matmul:18 用例全部通过
  • test/matmul/matmul:20 用例全部通过
  • AOT 路径 cannbotdsl.compile(op.run, *specs) 实测可用,精度与 JIT 一致
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 ykxxlzhong 的贡献)
Yykxxlzhong
12 天前 创建了 pull request,commit 14035d1e
CANN-robotCANN-robot成员
12 天前 添加了label:ai-co-authored
CANN-robotCANN-robot成员
12 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
12 天前 评论:

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
repo-cann/cannbot-dsl ✅ yang-jiwei, 金炯 (2/2) ✅ yang-jiwei (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
ykxxlzhong
12 天前 评论:

compile

likedislike
此处折叠了72条消息 查看更多
yang-jiwei成员
12 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
12 天前 添加了label:approved
jon_jin成员
12 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
12 天前 添加了label:lgtm
CANN-robotCANN-robot成员
12 天前 合入了pull request