(t: TileDescription)
| 1039 | ) |
| 1040 | |
| 1041 | def filter(t: TileDescription) -> bool: |
| 1042 | nonlocal tile |
| 1043 | return ( |
| 1044 | t.threadblock_shape[0] == tile.threadblock_shape[0] |
| 1045 | and t.threadblock_shape[1] == tile.threadblock_shape[1] |
| 1046 | and t.threadblock_shape[2] == tile.threadblock_shape[2] |
| 1047 | and t.warp_count[0] == tile.warp_count[0] |
| 1048 | and t.warp_count[1] == tile.warp_count[1] |
| 1049 | and t.warp_count[2] == tile.warp_count[2] |
| 1050 | and t.stages == tile.stages |
| 1051 | ) |
| 1052 | |
| 1053 | if not any(t for t in tile_descriptions if filter(t)): |
| 1054 | continue |
no outgoing calls