Skip to content

Commit eb90452

Browse files
authored
[x86] Tweak Linalg graph preprocessing (#311)
Adds unit dim folder and removes initial elementwise fusion to enable lowering of larger KernelBench level2 graphs. Fusion still occurs in later steps. The separate upstream pass needs further investigation to narrow down the root cause. Unit dim folding unblocks tiling when these unit dims add zero constants to Linalg indexing maps.
1 parent 3bd3395 commit eb90452

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎lighthouse/pipeline/descriptors/x86_64/default.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ Pipeline:
55
- include: cleanup.yaml
66

77
## Initial elementwise operations fusion to group them.
8-
- pass: "linalg-fuse-elementwise-ops"
8+
# Disabled due to problem on larger graphs.
9+
# TODO: Investigate and report the root cause.
10+
# - pass: "linalg-fuse-elementwise-ops"
11+
12+
# Fold unit-extent dimensions to unblock tiling which can fail on constants
13+
# in indexing maps present in place of unit dimensions.
14+
- pass: "linalg-fold-unit-extent-dims"
915

1016
## CPU layout packing.
1117
- include: pack.yaml {

0 commit comments

Comments
 (0)