Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DT] Add an option to not hoist infusible encoding ops out of dispatch. #20017

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Feb 18, 2025

This is an experimental path that disables the hoisting. The main purpose is to keep the same number of dispatches. Otherwise, they'd result in their own dispatch.

The control function (that adds the operations to the candidate set) can be relaxed once we have better encoding propagation.

This is an experimental path that disables the hoisting. The main
purpose is to keep the same number of dispatches. Otherwise, they'd
result in their own dispatch.

The control function (that adds the operations to candidate set) can be
relaxed once we have encoding propagation better.

Signed-off-by: hanhanW <[email protected]>
Copy link
Contributor

@Max191 Max191 left a comment

Choose a reason for hiding this comment

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

If we want to add controls on this, then we should do it at the level of SetEncoding. One of the main points of data tiling/encodings as I understand it is to fuse or propagate the layout transformation of the input operands with a producer or consumer. Having a set_encoding in the same dispatch as its user seems to be counterproductive in all cases, because the layout for the dispatch has not changed, and now you are effectively doing something that could be done entirely within codegen.

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