Skip to content

Confused about cutlass layout #666

Answered by jackkosaian
LeiWang1999 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @LeiWang1999 .

You are correct that T represents "transpose" and N represents "no transpose."

However, N is used for column-major layouts and T for row-major layouts.

Is the kernel you list above one that is generated by CUTLASS?

The reason that I ask is that kernels generated by CUTLASS via CMake leverage CUTLASS's GemmUniversalAdapter, which expects a transposed problem (e.g., A becomes B, row major becomes column major). Thus, when emitting these GEMM declarations, CUTLASS's generation framework transposes the problem and operand layouts. This can be seen here and here. So the CUTLASS profiler is reporting the correct layout for the NN kernel in question.

If you find reasoning abou…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LeiWang1999
Comment options

@LeiWang1999
Comment options

@jackkosaian
Comment options

@LeiWang1999
Comment options

Answer selected by LeiWang1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants