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

[FA Performance] Optimize subgroup shape when num-warps>8 #3740

Open
mfrancepillois opened this issue Mar 24, 2025 · 1 comment
Open

[FA Performance] Optimize subgroup shape when num-warps>8 #3740

mfrancepillois opened this issue Mar 24, 2025 · 1 comment

Comments

@mfrancepillois
Copy link
Contributor

When computing “large” blocks (Head_DIM=128/Workgroup <128,128, 64>) , the CUTLASS FA implementation assigns work to 16 subgroups of shape: 8x2.

In the Triton implementation, all subgroups are assigned to the same dimension. Therefore, when number of subgroups = 16, we compute a block with subgroup shape: 16x1.

We should therefore try to improve the Triton implementation and define multi-dimensional subgroup shape when needed.

@mfrancepillois mfrancepillois self-assigned this Mar 24, 2025
@mfrancepillois
Copy link
Contributor Author

The CUTLASS implementation ensures that each subgroup processes data of size <16,64,64>. So, within a WorkGroup, subgroups are assigned to a dimension in order to maintain the data shape per subgroup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants