cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

[QST] Difference between rs and ss

Open haeunlee99 opened this issue 2 years ago • 4 comments

What is your question?

What is difference between rs and ss? For example how are those two files different?

sm90_mma_array_tma_gmma_ss_warpspecialized.hpp sm90_mma_multistage_gmma_rs_warpspecialized.hpp

Thanks!

haeunlee99 avatar Sep 18 '24 10:09 haeunlee99

RS uses Hopper MMAs that source A from registers. SS uses MMAs that source A from smem

thakkarV avatar Sep 18 '24 17:09 thakkarV

Thank you for your response. I thought in hopper SS is used by default. I have several follow up questions.

  1. Which of RS and SS is considered to be optimal? Is there a guide to reproduce cuBLAS like near optimal performance? (e.g. shared memory swizzle, thread block size, number of threads) I saw there are a lot of mainloops under "cutlass/include/cutlass/gemm/collective" and not sure which once would give optimal performance.

  2. Is there also a guide I can reference to find optimal swizzle layout?

  3. This is another question, just for check up. If I want to do FP16 tensor core operation with FP32 accumulation, is it correct to use C = D = FP32 in MMA and convert to FP16 in epilogue?

Thank you again!

haeunlee99 avatar Sep 19 '24 03:09 haeunlee99

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 avatar Oct 19 '24 04:10 github-actions

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 avatar Jan 17 '25 04:01 github-actions