Better tiling implementation, fixed tiling asserts
This commit is contained in:
parent
425380f1a1
commit
6f04eb9db2
2 changed files with 142 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class MatMulOp:
|
|||
max_workgroup_size = props['max_work_group_size']
|
||||
if tile_size < 0:
|
||||
tile_size = 1
|
||||
while (2 * tile_size * tile_size <= max_workgroup_invocation
|
||||
while (4 * tile_size * tile_size <= max_workgroup_invocation
|
||||
and 2 * tile_size <= max_workgroup_size[0]
|
||||
and 2 * tile_size <= max_workgroup_size[1]):
|
||||
tile_size *= 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue