cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

[QST][CUTE] How to systematically and easily compose the cute layout algebra operations to get custom layout

Open danielhua23 opened this issue 8 months ago • 3 comments

What is your question? Hi,

I am very interested in how to write any custom layout I want using cute like https://github.com/NVIDIA/cutlass/blob/main/tools/util/include/cutlass/util/mixed_dtype_utils.hpp#L362 show, but its very difficult for me to use the layout algebras to compose get any custom layout. That is, I am able to recognize the every operation of layout algebra based on the doc, but I am not able to systematically and easily compose the algebra operations to get any layout I want.

So I wanna consult is there any tutorials about my question? Thanks

danielhua23 avatar Apr 16 '25 04:04 danielhua23

@ccecka

hwu36 avatar Apr 30 '25 02:04 hwu36

reading the source code, understanding the mathematical transforms that are happening, and then building a toolset of your own transformations is the only real way to be able to get to a place where you can write these on your own.

I recommend printing the results of all the intermediate steps in sequences of operations to build a better understanding

thakkarV avatar May 14 '25 18:05 thakkarV

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.

github-actions[bot] avatar Jun 13 '25 19:06 github-actions[bot]

This issue has been labeled inactive-90d due to no recent activity in the past 90 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.

github-actions[bot] avatar Sep 11 '25 20:09 github-actions[bot]