Closed
[Requirement|需求建议]: 优化自动VF融合性能 #2815
zhangyuebingAdd on  Jul 29Closed at  Sep 17
zhangyuebing
zhangyuebingCollaborators
Jul 29 Create

任务描述

A5 VF 融合 VFFusionCluster 方案设计

1. 背景与目标

1.1 现状

A5(DAV_3510)硬件支持 Vector Fusion(VF)——CCE 后端可将相邻的 PIPE_V 指令融合为单条融合指令。当前 pypto 有两个 pass 尝试为 VF 创造融合窗口:

  • TuneTileOpSeqForVF(pass 35,OoO 之后):通过 PipeSync::HasDataDependency 检查相邻 PIPE_V op 是否可合并,形成 mergedOps 分组并重排 op 序列。mergedOps 是 pass 局部变量,不持久化。
  • TuneSyncForVF(pass 39,InsertSync 之后):独立重新识别融合分组,基于时序模型(vfPrarm=0.8)决定是否移除 sync 并合并。同样 mergedOps 是局部变量。

问题:

当前实现无法保证编译器认为对 VF 融合友好的 pattern 一定被保留下来。

1.2 目标

引入 VFFusionCluster 机制:

任务目标

  1. 完成上述代码功能开发;
  2. 完成UT/ST开发,满足覆盖率要求;
  3. 完成上述文档相关更新;
  4. 与PL确认当前VF融合性能较差的算子用例,比如手动实现了VF TileOp的FA用例,保证实现后这类用例的自动VF融合性能满足预期。
likedislike
zhangyuebingzhangyuebingCollaborators
Jul 29 Added label: Passes
zhangyuebingzhangyuebingCollaborators
Jul 29 Modify description of issue
zhangyuebingzhangyuebingCollaborators
Jul 29 Modify description of issue
zhangyuebingzhangyuebingCollaborators
Jul 30 Assign zhangyuebing as responsible person
zhangyuebing
zhangyuebingCollaborators
Jul 30 Comments:

@KaiqiJin 请跟踪处理

likedislike
wangmingjunwangmingjunCollaborators
Jul 30 Assign hwwangmingjun as responsible person
wangmingjunwangmingjunCollaborators
Jul 30 Removed responsible person hwwangmingjun
KaiqiJin
KaiqiJinCollaborators
Jul 30 Comments:

OK 收到

likedislike
zhangyuebingzhangyuebingCollaborators
Jul 31 Removed responsible person zhangyuebing
zhangyuebingzhangyuebingCollaborators
Aug 13 Modify description of issue
wangmingjunwangmingjunCollaborators
Aug 18 Change title to "[Requirement|需求建议]: 优化自动VF融合性能", originally titled "[Task|任务跟踪]: 优化自动VF融合性能".
CatherieCatherieCollaborators
Aug 18 Associated pull request
CatherieCatherieCollaborators
Aug 18 Associated pull request
CatherieCatherieCollaborators
Aug 25 Associated pull request
h00694768h00694768
Sep 1 Associated pull request
KaiqiJinKaiqiJinCollaborators
Sep 17 changed custom state from 进行中 to 已完成
KaiqiJinKaiqiJinCollaborators
Sep 17 Close issue