Can TMA support copy part of data? like copy_if. #1601
-
I want to use TMA copy part of data. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
TMA supports this (predication for OOB reads) out of the box. you should not have to do anything special |
Beta Was this translation helpful? Give feedback.
Okay, create an affine layout to represent your tensors. you clearly have some layout in mind that is not 2D. For TMA, the gmem layout of your tensor must be affine. If it is not, then TMA cannot help you. If you have OOB elements, they will be zero filled by TMA but each CTA must have a consistent view of the smem "vector" it is going to load from gmem