cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

[QST]How to understand composition?

Open SuperCB opened this issue 1 year ago • 4 comments

What is your question? Image I am confused about the content of this article. Link when to mod ?when to div?

and what's the meaning of dth? Image

SuperCB avatar Sep 13 '24 02:09 SuperCB

Mathematically, a Layout is a fucntion mapping from integer to integer (1d logical index to 1d logical index). A Layout is a tuple of Shape and Stride. The Shape is in responsible for "unflatting" the 1d logical index into a n-d logical coordinate (div and mod). And the Stride is in responsible for inner product with n-d logical coordinate to get back to the 1d logical index.

Since the a Layout is a fucntion mapping from integer to integer, they can easily compose. For example, Layout A and B. A(B(i)), B(i) always returns an integer, so the function A can take it as input, aka, function compose.

For mod and div with Layouts, I don't think they are significant to the user.

cloudhan avatar Oct 10 '24 06:10 cloudhan

you don't answer my question

SuperCB avatar Oct 14 '24 08:10 SuperCB

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 Nov 13 '24 09:11 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 Feb 11 '25 09:02 github-actions[bot]