Skip to content

Set op conv - #1402

Open
and0d0 wants to merge 12 commits into
hw-native-sys:mainfrom
and0d0:set_op_conv
Open

Set op conv#1402
and0d0 wants to merge 12 commits into
hw-native-sys:mainfrom
and0d0:set_op_conv

Conversation

@and0d0

@and0d0 and0d0 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

ConvTile:
独立 ConvTileType
复用地址、地址空间、内存规划框架
复用 AllocTileOp、TASSIGN、TLOAD 的操作壳
在 EmitC 中生成 PTO-ISA ConvTile 类型
暂时只承诺 EmitC 后端支持

项目 原有 Tile 新增 ConvTile
PTOAS IR 类型 TileBufType ConvTileType
MLIR 类型语法 !pto.tile_buf<...> !pto.conv_tile<...>
主要用途 普通二维 Tile buffer 卷积相关硬件 Tile buffer
逻辑 shape 固定二维,例如 32x32 卷积维度,可为 1 到 6 维
存储容量计算 shape[0] * shape[1] * sizeof(dtype) bufferSize * sizeof(dtype)
layout 表达 BLayout + SLayout 独立的 ConvLayoutAttr
valid shape 有 valid_row、valid_col 当前不使用普通 Tile 的 valid shape
地址空间 vec、mat、left、right、acc 等 复用相同的 PTO address space
内存规划 已有成熟路径 已接入,按照 bufferSize 计算
AllocTileOp 原有支持 已支持
TLOAD 普通 PartitionTensorView -> TileBuf 当前支持 PartitionTensorView -> ConvTile
TASSIGN 已支持 已支持
TLOAD EmitC 生成 TLOAD(tile, global_tensor) 同样生成 TLOAD(conv_tile, global_tensor)
EmitC 类型 PTO-ISA Tile<...> PTO-ISA ConvTile<...>
VPTO 后端 已有原有 Tile 路径 当前没有完整 ConvTile VPTO lowering

未修改comment:
https://github.com/and0d0/PTOAS/pull/13(查看comment)

@github-actions
github-actions Bot force-pushed the main branch 2 times, most recently from 4687426 to 7e2ec3e Compare September 4, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant