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

[QST]How MMA_M, MMA_N, MMA_K computed in cute? #1448

Open
ziyuhuang123 opened this issue Mar 31, 2024 · 2 comments
Open

[QST]How MMA_M, MMA_N, MMA_K computed in cute? #1448

ziyuhuang123 opened this issue Mar 31, 2024 · 2 comments

Comments

@ziyuhuang123
Copy link

I know make_tiled_mma will create a mma_tile, and then along M, N, K we will get MMA_M, MMA_N, MMA_K dimensions. So inside cute::gemm, we will loop across MMA_M, MMA_N, MMA_K one by one?

@YichengDWu
Copy link

YichengDWu commented Apr 1, 2024

Yes. First you have a MMA atom and you will use them to make a MMA tile, then use the tile to partition the compute tile. For example, if you start with the 16-8-16 MMA atom, and configure the layout of atoms to be (3,4,2), that is equivalently to say you create a bigger MMA atom of size 48x32x32, and it uses 32x3x4x2 threads to run in parallel. Finally, if the compute tile has size 96-96-64, then you get extra dimensions (MMM_M, MMA_N, MMA_K)=(96/48, 96/32, 64/32) and they are running sequentially.

Copy link

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

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

3 participants