mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #144] [CLOSED] [refact] use cute::tensor to define smem_d layout #263
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/144
Author: @Chtholly-Boss
Created: 7/28/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
02c5df0[refact] use cute::tensor to define smem_d layout📊 Changes
1 file changed (+26 additions, -41 deletions)
View changed files
📝
deep_gemm/include/deep_gemm/impls/sm90_fp8_gemm_1d2d.cuh(+26 -41)📄 Description
Manually index smem_d is tedious and hard to maintain. By using cute::tensor, we can leverage CuTe's layout system to automatically handle the indexing and swizzling of shared memory.
As we only need to perform swizzle on smem_d, make it as a CuTe Tensor will be helpful like follow:
And instead of:
We only need to write:
which is more readable and maintainable. As for Performance, I have tested on H20, and results show that this will not incur any overheads:
Before Modification
After modification:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.