Closed
[Requirement|需求建议]: move_ub_to_ub算子 #3678
Yu_yangyangAdd on Oct 28Closed at Oct 29
Yu_yangyang
Oct 28 Comments:
Oct 28 Comments:
/assign


Oct 28 Assign YuYangYang_ as responsible person
Oct 28 Associated pull request
Oct 28 Modify description of issue
Oct 28 Modify description of issue
Oct 29 Close issue
Oct 29 Added label: resolved
Background(背景信息)
在 UB(Unified Buffer)内对中间张量做重排/拷贝时,原先没有「UB→UB」直达搬运,只能借道 GM(DDR)中转:先 OP_COPY_OUT(UB→GM),再 OP_COPY_IN(GM→UB)。
在 tile 级编译流程里,replace_tensor、insert_op_for_viewassemble 等 PASS 对「UB 输入 / View-Assemble 对」插入的正是这套「UB→DDR→UB」拷贝。它带来三类额外开销:
新算子 move_ub_to_ub 用一条 UB→UB 搬运替代上述 GM 中转,实现 UB 之间的直接数据搬运。
Origin(信息来源)
pypto vector
Benefit / Necessity(价值/作用)
Design(设计方案)
接口与约束
执行链路
Tiling
底层指令(pto-isa TMOV 的 Vec→Vec 分支)