mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #244] [CLOSED] Fix SM90 ArchSpec bug and add DG_MINIMIZE_NUM_SMS env var #308
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#308
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/244
Author: @yurekami
Created: 12/25/2025
Status: ❌ Closed
Base:
main← Head:fix/sm90-archspec-and-env-var📝 Commits (2)
50d2eecfix: use SM90ArchSpec instead of SM100ArchSpec in sm90_bf16_k_grouped_gemm2580e9afeat: add DG_MINIMIZE_NUM_SMS env var to control min SMS behavior📊 Changes
4 files changed (+27 additions, -8 deletions)
View changed files
📝
csrc/jit_kernels/heuristics/sm100.hpp(+3 -1)📝
csrc/jit_kernels/heuristics/sm90.hpp(+3 -1)📝
csrc/jit_kernels/impls/sm90_bf16_gemm.hpp(+4 -4)📝
csrc/utils/system.hpp(+17 -2)📄 Description
Summary
This PR addresses two issues:
1. Fix for Issue #242 - SM100ArchSpec Bug in SM90 Code
sm90_bf16_k_grouped_gemmfunction,SM100ArchSpecwas incorrectly used instead ofSM90ArchSpecfor TMA descriptor creation (copy-paste error)csrc/jit_kernels/impls/sm90_bf16_gemm.hpp(lines 261, 266, 271, 272)2. Feature for Issue #239 - Add DG_MINIMIZE_NUM_SMS Environment Variable
DG_MINIMIZE_NUM_SMSenvironment variable to control this behaviorbooltype support toget_env()incsrc/utils/system.hppshould_minimize_num_sms()insm90.hppandsm100.hppto check the env varUsage:
Test plan
DG_MINIMIZE_NUM_SMS=0to confirm env var disables min SMS optimizationDG_MINIMIZE_NUM_SMS=1or unset to confirm default behavior is preserved🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.