Repository navigation
[SM100] Keep the normal shared memory budget for block_m 240 Mega MoE on CC 10.7 - #125
Merged
Merged
Conversation
… on CC 10.7 Co-Authored-By: Claude Opus 5.5 <[email protected]>
zcnrex
marked this pull request as ready for review
October 27, 2026 23:15
zcnrex
added a commit
that referenced
this pull request
Oct 27, 2026
… on CC 10.7 (#125) Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 438cfd9)
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On CC 10.7, #120 gives every Mega MoE config the oversized shared-memory budget (334848 B). For
block_m240, the prefill-sized config, that makes the kernel slower. This PR keeps the normal budget (232448 B) forblock_m240 and leaves every otherblock_mon the oversized budget.get_smem_capacity_for_mega_moe(block_m)returnsSM100ArchSpec::smem_capacitywhenblock_m == 240.get_smem_mode_for_mega_moereturns no mode and the launch falls back tojit->launch.Motivation
On DeepSeek-V4.1-Flash prefill on VR200 (
sm_107a, CUDA 13.4), the oversized budget nearly doubles the stage count of theblock_m240 kernel. That kernel gets slower, and prefill throughput drops a few percent compared with the normal budget. Smallerblock_mconfigs, used at decode, keep their gain from #120. Only fp8xfp4 was measured.Validation
sm_107a, CUDA 13.4, CUTLASS 4.8.1:block_m240 config is back on the normal budget, and prefill throughput matches 0.2.5 built without [SM100] Use oversized shared memory for Mega MoE on CC 10.7 #120.block_mconfigs keep the same oversized config as 0.2.5.🤖 Generated with Claude Code