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

[VectorDistribution] Reuse intrinsic layout in chained gemm #18505

Merged

Conversation

Groverkss
Copy link
Contributor

@Groverkss Groverkss commented Sep 12, 2024

This patch teaches attention codegen pipeline to reuse the intrinsic layout of output of the first matmul as the lhs of the second matmul. This is possible for 16x16x16 and 32x32x8 MFMA intrinsic layouts.

@Groverkss Groverkss force-pushed the users/Groverkss/reuse-attention-intrinsic branch from 67a72fa to d8f7aad Compare September 19, 2024 10:50
@Groverkss Groverkss marked this pull request as ready for review September 19, 2024 10:54
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

LGTM but you may want to wait for thumbs up from Quinn/Mahesh too

@Groverkss Groverkss merged commit 914858f into iree-org:main Sep 20, 2024
33 checks passed
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.

3 participants