已开启
feat: 实现纯 Python 多流规划 #2473
feat: 实现纯 Python 多流规划 #2473
已开启
KenChow创建于 17 天前
KenChow成员
17 天前

Pull Request

描述

实现独立的纯 Python 多流规划模块 multistream。调用方使用 MiniDAG 描述算子依赖,通过 plan() 获取节点流 ID 和所需流数,再自行创建流、安排任务和同步。

本 PR 只包含一个提交:75b30d23 feat: 实现纯 Python 多流规划,共 18 个文件:

  • MiniDAG 图模型、节点类型和规划结果。
  • 路径覆盖、负载均衡、主流优先及 profiling 加权合并。
  • 宿主 CANN Runtime 核数查询、参数校验、日志和异常处理。
  • pyproject.toml 包配置。

UT/ST、文档、覆盖率配置、构建交付和 CI 接入统一放在 PR !2474。

变更类型

关联的Issue

从 原 PR !1920 拆分,未新增关联 Issue。

如何测试

  1. 在临时工作区中组合本 PR 与 !2474,再进入 multistream/,使用已安装 dev 依赖的 Python 环境执行 python -m pytest tests/ut tests/st -q:291 passed,4 subtests passed。
  2. 组合后的 Git tree 与原完整版本 6dbc123f 完全一致;git diff --check 通过。
  3. 本分支不附带测试文件,上述结果来自两个 PR 的组合验证。真实设备运行及完整 CANN 产品包构建未在本机执行。

核对清单

其他信息

两个 PR 的分支都直接从 cann/graph-autofusion:develop 创建,互不包含对方的新增提交,改动文件也不重叠。

合入顺序:先 !2473,再 !2474。本 PR 合入时尚不包含测试和文档,检视时请结合 !2474 的验证内容。

opencann !5 保留完整版本用于线上 CI 验证;本地测试通过不代表线上 CI 已通过。原 !1920 保留供查阅历史讨论。

likedislike
合并受阻
KKenChow成员
17 天前 创建了 pull request,commit 4364a28e
atomgit-bot
atomgit-bot
17 天前 评论:

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

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

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

likedislike
不准确?
CANN-robotCANN-robot成员
17 天前 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
17 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
17 天前 评论:

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/graph-autofusion ❌ (0/2)(You can also ask: 张德鹏, zhang_shengjie, 王涛, xuyafei, yangyongqiang0606) ❌ (0/1)(You can also ask: peiyang, xuyafei, xchu42, wangxiaotian995, zhujingjing)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
17 天前 将niuyuhu,yangyongqiang0606,liyuewei,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,shengnan666,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为评审人
CANN-robotCANN-robot成员
17 天前 将niuyuhu,yangyongqiang0606,liyuewei,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,shengnan666,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为审查人
atomgit-bot
atomgit-bot
17 天前 评论:

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

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

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

likedislike
不准确?
KKenChow成员
17 天前 预合并成功(commit_id: f1b0c6e6982c4f967a3afaab178b0e47fd197833)
KKenChow成员
17 天前 预合并成功(commit_id: be590fe9f5d33d7c1a0f4dbc2dcf21d017b65e53)
CANN-robotCANN-robot成员
17 天前 删除了label:cann-cla/yes
CANN-robotCANN-robot成员
17 天前 删除了label:stat/needs-squash
CANN-robot
CANN-robot成员
17 天前 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): stat/needs-squash.

likedislike
CANN-robotCANN-robot成员
17 天前 添加了label:cann-cla/yes
KKenChow成员
17 天前 修改标题为 “feat: 实现纯 Python 多流规划”,原标题为“feat: 新增独立多流规划模块及 UT/ST”
KKenChow成员
17 天前 修改了pull request 的描述
KenChow成员
17 天前 评论:

compile

likedislike
KKenChow成员
17 天前 预合并成功(commit_id: 300a40633b39b84d89eb82e22dfd3115c18f0c13)
CANN-robot
CANN-robot成员
17 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
17 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
17 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
17 天前 添加了label:ci-pipeline-passed