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

Add TritonTilingExt dialect to support ops not representable in linalg #45

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

nhat-nguyen
Copy link
Collaborator

@nhat-nguyen nhat-nguyen commented Nov 8, 2023

The TritonTilingExt dialect leverages linalg's TilingInterface to add tiling & fusion support for operators that cannot be represented in linalg Much of the tiling implementation is borrowed from linalg's tiling code. As an example, I have added a barebone version of cumsum that represents the cumulative sum of the inner-most dimension of a tensor. Other backends can then lower the op to lower-level implementation as needed after applying tiling & fusion.

Copy link
Collaborator

@manbearian manbearian left a comment

Choose a reason for hiding this comment

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

Fantastic! This is a great example of how to represent operations in the middle-layer without relying directly on the linalg dialect.

@manbearian manbearian merged commit 230c38b into main Nov 8, 2023
@manbearian manbearian deleted the dev/nhat/tt_ext branch November 8, 2023 21:19
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