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

[quidditch_snitch] Implement bufferization for microkernels #38

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

zero9178
Copy link
Member

By making it possible to bufferize the operations we are able to form our micro kernels earlier in the pass pipeline prior to bufferization. This is required for other transformation passes such as explicit tensor promotion to L1 memory and subgroup distribution that we are planning to add later.

As a consequence of this change the existing xdsl_kernel (now renamed to just microkernel) had to be split into two operations, one operating on tensors, the other on memrefs. The reason for this is that the memref version should be isolated from above while the tensor version cannot be for bufferization purposes. The bufferization process itself now converts between the two.

By making it possible to bufferize the operations we are able to form our micro kernels earlier in the pass pipeline prior to bufferization. This is required for other transformation passes such as explicit tensor promotion to L1 memory and subgroup distribution that we are planning to add later.

As a consequence of this change the existing `xdsl_kernel` (now renamed to just `microkernel`) had to be split into two operations, one operating on tensors, the other on memrefs. The reason for this is that the memref version should be isolated from above while the tensor version cannot be for bufferization purposes. The bufferization process itself now converts between the two.
@zero9178 zero9178 merged commit 9ea52d4 into main Jun 23, 2024
1 check passed
@zero9178 zero9178 deleted the bufferize-microkernel branch June 23, 2024 08:54
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.

1 participant