cherry-pick feature/hopper-blockwise-generalization-optimization (#2270)

This commit is contained in:
Lain
2025-04-29 13:47:22 -07:00
committed by GitHub
parent 697126019e
commit 2b78c2fe31
9 changed files with 503 additions and 216 deletions

View File

@@ -322,7 +322,11 @@ struct DescriptorIterator
CUTE_HOST_DEVICE constexpr
DescriptorIterator operator+(Index const& offset) const
{
return { GmmaDescriptor{desc_ + uint64_t(offset)} };
// Use 32bit calculation rather than 64 bit calculation as we only update the part of desc
GmmaDescriptor ret;
ret.reg32_[0] = desc_.reg32_[0] + uint32_t(offset);
ret.reg32_[1] = desc_.reg32_[1];
return { ret };
}
};