已合并
perf: 完善 Autofuse V2 Broadcast 性能建模(#235) #2074
perf: 完善 Autofuse V2 Broadcast 性能建模(#235) #2074
已合并
高煜博创建于 23 天前
高煜博
高煜博成员
23 天前

Pull Request

描述

重新提交 PR #1812 的内容(原 PR 被回退),并在此基础上将 Broadcast perf 建模中的除零错误检查从 ERROR 级别(GE_ASSERT_TRUE -> GELOGE)降级为 WARNING 级别(GE_WARN_ASSERT -> GELOGW),避免除零检查失败时输出 ERROR 日志。
原pr链接:https://gitcode.com/cann/graph-autofusion/pull/1812

具体变更:

  1. 完整恢复 PR #1812 的 23 个文件(Broadcast V2 性能建模全套实现和测试)
  2. 将 3 个 perf 文件中 8 处除零检查从 GE_ASSERT_TRUE 替换为其他告警:
    • broadcast_perf_utils_v2.cpp:4 处(byte_size / divisor / half_vl 检查)
    • broadcast_last_axis_perf_v2.cpp:3 处(SafeDiv divisor / E2B last_size / GatherTwo last_size)
    • broadcast_nlast_axis_perf_v2.cpp:1 处(SafeDiv divisor)

变更类型

关联的Issue

#235

如何测试

  1. sh build.sh -u --module=autofuse_framework -j 8
  2. 运行 Broadcast perf V2 相关 UT

核对清单

其他信息

本 PR 替代被回退的 PR #1812,内容一致但除零检查改为 WARNING 级别。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 高煜博 的贡献)
高煜博高煜博成员
23 天前 创建了 pull request,commit ba3b398e
CANN-robotCANN-robot成员
23 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
23 天前 评论:

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/graph-autofusion ✅ yangyongqiang0606, zhang_shengjie, xchu42 (3/2) ✅ yangyongqiang0606 (1/1)

💡 Tip:

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

CLA Signature Pass

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

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
23 天前 将niuyuhu,yangyongqiang0606,liyuewei,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,shengnan666,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为评审人
此处折叠了43条消息 查看更多
xchu42
xchu42成员
19 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
19 天前 添加了label:lgtm
yangyongqiang
yangyongqiang成员
18 天前 评论:

/approve

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