已合并
feat: 逻辑流分配后dump图 #4508
夏国正创建于 15 天前
feat: 逻辑流分配后dump图 #4508
已合并
夏国正创建于 15 天前
夏国正成员
15 天前

Pull Request

描述

ModelBuilder::BuildModelForGetTask 完成逻辑流分配后,通过 GE_DUMP 增加 AfterAssignLogicalStreams 调试图 dump,当前图均可触发,不再限制为根图;同步更新 dump 图说明文档。

变更类型

关联的Issue

无。

如何测试

  1. 使用现有 cmake-build-gcov 配置串行构建受影响的 GE UT target。
  2. 运行 UtestModelBuilderTest.*,原有 15 个用例通过。
  3. 运行 pre-commit,所有 hooks 通过。

核对清单

其他信息

无。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 夏国正 的贡献)
夏国正成员
15 天前 创建了 pull request,commit af13c9c6
atomgit-bot
atomgit-bot
15 天前 评论:

变更摘要

本 PR 为 ModelBuilder::BuildModelForGetTask 增加逻辑流分配后的根图 dump 功能:在 stream_allocator_.AssignLogicalStreams 完成逻辑流分配后,通过判断 compute_graph_->GetParentGraph() == nullptr 仅对根图执行 GE_DUMP(compute_graph_, "AfterAssignLogicalStreams") 调试图 dump,子图不触发该 dump;同时同步更新了编译器模块设计文档。

主要改动

  • 根图条件 dump:在 BuildModelForGetTaskAssignLogicalStreams 成功后新增判断,仅当 compute_graph_->GetParentGraph() 为空(即根图)时执行 GE_DUMP,并以 "AfterAssignLogicalStreams" 作为 dump 标识。
  • 子图不触发 dump:通过父图为空的判定条件,确保子图在逻辑流分配后不会产生该调试图 dump,缩小 dump 范围。
  • 文档同步更新:按 PR 描述同步更新了编译器模块设计文档,说明该 dump 行为(本次共改动 2 个文件,其中 compiler/graph/build/model_builder.cc 包含上述代码变更)。
likedislike
atomgit-bot
atomgit-bot
15 天前 评论:

🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 AI 代码审查。

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

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/ge ClarkXie, yuht9, 张德鹏 (3/2) 张德鹏 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
15 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,wangxiaotian995,stevenaw0,yuht9设为评审人
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
15 天前 添加了label:cann-cla/yes
夏国正成员
15 天前 评论:

compile

likedislike
夏国正成员
15 天前 update merge request[project id: 8824148, iid: 4508, commit_id: 5c8258d62ad57f4720b0f21ee3cd78a6d42b5825] virtual merging success
CANN-robotCANN-robot成员
15 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
15 天前 评论:

流水线任务触发成功
任务链接 [da80b54cc1434d8db38ac600d0855fd3][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_ARM_compiler ✅ SUCCESS >>>>> >>>>>
Compile_ARM_executor ✅ SUCCESS >>>>> >>>>>
Compile_ARM_dflow ✅ SUCCESS >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>

[2026-08-22 14:25:10]    CI执行结束

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

流水线任务触发成功
任务链接 [1779c7d5485447bea4e0349558402ff3][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_X86_compiler ✅ SUCCESS >>>>> >>>>>
Compile_X86_executor ✅ SUCCESS >>>>> >>>>>
Compile_X86_dflow ✅ SUCCESS >>>>> >>>>>
UT_Test_dflow ✅ SUCCESS
UT_Test_ge_common ✅ SUCCESS
UT_Test_parser ✅ SUCCESS
UT_Test_python ✅ SUCCESS >>>>>
UT_Test_rt ✅ SUCCESS
UT_Test_acl ✅ SUCCESS
UT_Test_autofuse ✅ SUCCESS
UT_Test_executor ✅ SUCCESS
UT_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_dflow ✅ SUCCESS
ST_Test_ge_common ✅ SUCCESS
ST_Test_parser ✅ SUCCESS
ST_Test_python ✅ SUCCESS >>>>>
ST_Test_rt ✅ SUCCESS
ST_Test_autofuse ✅ SUCCESS
ST_Test_executor ✅ SUCCESS
ST_Test_hetero ✅ SUCCESS
ST_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_autofuse_e2e ✅ SUCCESS
UT_Test_fe ✅ SUCCESS
UT_Test_tefusion ✅ SUCCESS
ST_Test_fe ✅ SUCCESS
ST_Test_tefusion ✅ SUCCESS
ST_Test_ge_common_atc ✅ SUCCESS
UT_Test_Report_graphengine ✅ SUCCESS >>>>>
UT_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
UT_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
ST_Test_Report_graphengine ✅ SUCCESS >>>>>
ST_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
ST_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
UT_Test_Report_fe ✅ SUCCESS >>>>>
ST_Test_Report_fe ✅ SUCCESS >>>>>

[2026-08-22 14:33:03]    CI执行结束

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

流水线任务触发成功
任务链接 [dfda6e2be50147079753a857c4be1ea3][流水线指导]

任务名称状态日志下载链接
codecheck_Pr ✅ SUCCESS
antipoison ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
codecheck_dt ✅ SUCCESS >>>>>
codecheck_precommit ✅ SUCCESS >>>>>
StaticCheck_codespell ✅ SUCCESS
StaticCheck_link_validity ✅ SUCCESS
StaticCheck_resource_existence ✅ SUCCESS
StaticCheck_tag_closed ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS

[2026-08-22 14:22:44]    CI执行结束

likedislike
CANN-robotCANN-robot成员
15 天前 添加了label:api-check-pass
此处折叠了7条事件消息 查看更多
CANN-robotCANN-robot成员
15 天前 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
15 天前 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robotCANN-robot成员
15 天前 添加了label:cann-cla/yes
夏国正成员
15 天前 修改了pull request 的描述
夏国正成员
15 天前 修改标题为 “feat: 逻辑流分配后dump图”,原标题为“feat: 逻辑流分配后dump根图”
夏国正成员
15 天前 评论:

compile

likedislike
夏国正成员
15 天前 update merge request[project id: 8824148, iid: 4508, commit_id: 9cf900c01c2a26c97faa4c306d3d1ab5f559d1d1] virtual merging success
CANN-robotCANN-robot成员
15 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
15 天前 评论:

流水线任务触发成功
任务链接 [6acd394434024db7b34148e207977114][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_ARM_compiler ✅ SUCCESS >>>>> >>>>>
Compile_ARM_executor ✅ SUCCESS >>>>> >>>>>
Compile_ARM_dflow ✅ SUCCESS >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>

[2026-08-22 15:48:37]    CI执行结束

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

流水线任务触发成功
任务链接 [78d6405141f54bdeb1c55d532f2d9bea][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_X86_compiler ✅ SUCCESS >>>>> >>>>>
Compile_X86_executor ✅ SUCCESS >>>>> >>>>>
Compile_X86_dflow ✅ SUCCESS >>>>> >>>>>
UT_Test_dflow ✅ SUCCESS
UT_Test_ge_common ✅ SUCCESS
UT_Test_parser ✅ SUCCESS
UT_Test_python ✅ SUCCESS >>>>>
UT_Test_rt ✅ SUCCESS
UT_Test_acl ✅ SUCCESS
UT_Test_autofuse ✅ SUCCESS
UT_Test_executor ✅ SUCCESS
UT_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_dflow ✅ SUCCESS
ST_Test_ge_common ✅ SUCCESS
ST_Test_parser ✅ SUCCESS
ST_Test_python ✅ SUCCESS >>>>>
ST_Test_rt ✅ SUCCESS
ST_Test_autofuse ✅ SUCCESS
ST_Test_executor ✅ SUCCESS
ST_Test_hetero ✅ SUCCESS
ST_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_autofuse_e2e ✅ SUCCESS
UT_Test_fe ✅ SUCCESS
UT_Test_tefusion ✅ SUCCESS
ST_Test_fe ✅ SUCCESS
ST_Test_tefusion ✅ SUCCESS
ST_Test_ge_common_atc ✅ SUCCESS
UT_Test_Report_graphengine ✅ SUCCESS >>>>>
UT_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
UT_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
ST_Test_Report_graphengine ✅ SUCCESS >>>>>
ST_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
ST_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
UT_Test_Report_fe ✅ SUCCESS >>>>>
ST_Test_Report_fe ✅ SUCCESS >>>>>

[2026-08-22 15:56:05]    CI执行结束

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

流水线任务触发成功
任务链接 [fea8216003984434a78311511c6c7d34][流水线指导]

任务名称状态日志下载链接
codecheck_Pr ✅ SUCCESS
antipoison ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
codecheck_dt ✅ SUCCESS >>>>>
codecheck_precommit ✅ SUCCESS >>>>>
StaticCheck_codespell ✅ SUCCESS
StaticCheck_link_validity ✅ SUCCESS
StaticCheck_resource_existence ✅ SUCCESS
StaticCheck_tag_closed ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS

[2026-08-22 15:46:32]    CI执行结束

likedislike
CANN-robotCANN-robot成员
15 天前 添加了label:api-check-pass
ClarkXie成员
15 天前 评论:

/lgtm

likedislike
yuht9成员
15 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
15 天前 添加了label:lgtm
CANN-robotCANN-robot成员
15 天前 删除了label:api-check-pass
CANN-robotCANN-robot成员
15 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
15 天前 添加了label:ci-pipeline-passed
张德鹏成员
12 天前 评论:

/approve

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