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

[LLVMGPU] Pad to intrinsic shape in LLVMGPUPadAndVectorDistribute pipeline #18632

Merged

Conversation

Groverkss
Copy link
Contributor

This patch makes LLVMGPUPromoteToFitMMA pass pad to a multiple of intrinsic shape, instead of padding to 1.

Fixes #18602

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.

I don't understand the batch matmul test

@Groverkss Groverkss requested a review from hanhanW October 3, 2024 11:29
Copy link
Contributor

@hanhanW hanhanW left a comment

Choose a reason for hiding this comment

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

@Groverkss Groverkss force-pushed the users/Groverkss/fix-padanddistribute branch from 0a2539e to abad5bc Compare October 3, 2024 17:11
@Groverkss
Copy link
Contributor Author

Can you add a test to https://github.com/iree-org/iree/blob/main/compiler/src/iree/compiler/Codegen/LLVMGPU/test/promote_matmul_to_fit_mma.mlir ?

I modified the first test to use lowering_config to decide tile sizes multiples.

@MaheshRavishankar
Copy link
Contributor

cc @nirvedhmeshram

@Groverkss Groverkss force-pushed the users/Groverkss/fix-padanddistribute branch from cef81b0 to 47934f0 Compare October 7, 2024 10:27
@Groverkss Groverkss requested a review from hanhanW October 7, 2024 15:38
@Groverkss Groverkss merged commit ad68964 into iree-org:main Oct 8, 2024
34 of 35 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.

[gpu]: error: Vector shape: [1, 8, 24] does not match the layout
4 participants