Merged
fix:优化power性能建模 #534
fix:优化power性能建模 #534
Merged
gaoxinAdd on May 28
gaoxin
gaoxinCollaborators
May 28

Pull Request

描述

优化power性能建模,提高性能计算准确度,使ATT选择时能选到正确的模板

问题原因

pow的性能建模中只计算了特殊值处理的部分,没有计算核心的计算逻辑部分,导致计算出来的性能估值较小,使得AIV_VEC的性能估值小于AIV_MTE2,导致vector bound的场景被识别为mte2 bound,没有选择到最优的模板,导致融合后性能劣化

解决方案

float类型:

  1. 补齐核心计算部分的逻辑
  2. 增加placeholder占位,对于暂时没有性能数据的MicroApi先占位,方便后续精确建模
  3. 特殊值处理部分只计算比较的逻辑,不计算实际处理部分

int类型:

  1. 梳理int类型的计算逻辑,补齐缺失的计算
  2. 非int8类型的计算强依赖于数据的值,无法精确计算,maxLoop暂时按8计算

变更类型

请选择本次引入的变更类型:

关联的Issue

如何测试

描述测试此变更的步骤和前提条件:

  1. TF场景
  2. 测试pow融合的用例

核对清单

其他信息

在此添加任何其他关于本次 PR 的说明。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for gaoxin's contribution.)
gaoxingaoxinCollaborators
May 28 Added label: enhancement
gaoxingaoxinCollaborators
May 28 Created pull request, commit a91f0cc2
CANN-robot
CANN-robotCollaborators
May 28 Comments:

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


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

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
May 28 Added label: cann-cla/yes
CANN-robotCANN-robotCollaborators
May 28 Set xchu42,wqtshg_wt,shengnan666,XuebinYang,sjtulxh,zhanj,xuyafei,wangxiaotian995 as approver
59 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Jun 4 Added label: lgtm
wangxiaotian995
wangxiaotian995Collaborators
Jun 4 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Jun 4 Added label: approved
CANN-robotCANN-robotCollaborators
Jun 4 Closed associated issue
CANN-robotCANN-robotCollaborators
Jun 4 Merged pull request