Skip to content

[GPU] Add rematerialize parallel ops in the vector distribute pipeline - #21073

Merged
pashu123 merged 2 commits into
iree-org:mainfrom
pashu123:enable_rematerialize_fusion
Jun 11, 2025
Merged

pashu123 merged 2 commits into
iree-org:mainfrom
pashu123:enable_rematerialize_fusion

Conversation

@pashu123

Copy link
Copy Markdown
Contributor

This enables elementwise op fusion and some of cases might benefit from this. Fix for the issue: #20875

@pashu123
pashu123 force-pushed the enable_rematerialize_fusion branch from ce29f55 to 1ed55e7 Compare June 11, 2025 08:44
@pashu123
pashu123 requested a review from hanhanW as a code owner June 11, 2025 08:44
@pashu123
pashu123 force-pushed the enable_rematerialize_fusion branch 2 times, most recently from 7d61135 to fbf895f Compare June 11, 2025 08:47
This enables elementwise op fusion and some of cases might benefit from
this. Fix for the issue: iree-org#20875
@pashu123
pashu123 force-pushed the enable_rematerialize_fusion branch from fbf895f to bd83cec Compare June 11, 2025 09:24
return t.isIntOrIndexOrFloat();
}

static bool hasExternalCapture(linalg::GenericOp genericOp) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment explaining what this does and maybe provide an example of a generic with an external capture?

}
}
}
return false; // All operands are locally defined or block arguments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return false; // All operands are locally defined or block arguments
return false; // All operands are locally defined or block arguments.

@pashu123
pashu123 requested a review from kuhar June 11, 2025 15:39
@pashu123
pashu123 merged commit f59480f into iree-org:main Jun 11, 2025
Groverkss added a commit that referenced this pull request Aug 30, 2025
…fig (#21797)

There was an attempted fix in
#21073 which was wrong. The real
fix is that we should not be serially tiling parallel dimensions which
will anyway get fused into another op which gets tiled.

This removes the rematerialize parallel ops pass and instead fixes the
configuration logic.
hhkit pushed a commit to opencompl/iree that referenced this pull request Sep 11, 2025
…fig (iree-org#21797)

There was an attempted fix in
iree-org#21073 which was wrong. The real
fix is that we should not be serially tiling parallel dimensions which
will anyway get fused into another op which gets tiled.

This removes the rematerialize parallel ops pass and instead fixes the
configuration logic.

Signed-off-by: Ivan Ho <[email protected]>
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
#21073)

This enables elementwise op fusion and some of cases might benefit from
this. Fix for the issue: #20875
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.

2 participants