Skip to content

Fix sync issue of TMEM alloc/dealloc - #292

Merged
LyricZhao merged 1 commit into
deepseek-ai:mainfrom
RayWang96:fix_tmem_sync
Mar 22, 2026
Merged

LyricZhao merged 1 commit into
deepseek-ai:mainfrom
RayWang96:fix_tmem_sync

Conversation

@RayWang96

Copy link
Copy Markdown
Collaborator

No description provided.

@RayWang96
RayWang96 requested review from LyricZhao and zheanxu March 22, 2026 08:02
@LyricZhao
LyricZhao merged commit d30fc36 into deepseek-ai:main Mar 22, 2026
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 21, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus the two NV-side feature commits:

  - Enable bf16 bias output for FP8 GEMM on SM100
  - SM90 paged MQA logits: support kv_block=32 and next_n=4

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh -- deepseek-ai#292 (d30fc36) already covers the same hazard
via NamedBarrier.sync.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 21, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus the two NV-side feature commits:

  - Enable bf16 bias output for FP8 GEMM on SM100
  - SM90 paged MQA logits: support kv_block=32 and next_n=4

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh -- deepseek-ai#292 (d30fc36) already covers the same hazard
via NamedBarrier.sync.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 21, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus the two NV-side feature commits:

  - Enable bf16 bias output for FP8 GEMM on SM100
  - SM90 paged MQA logits: support kv_block=32 and next_n=4

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh that was added by nv_dev's 8e866e4; deepseek-ai#304 removed
the equivalent sync upstream (replaced with NamedBarrier.sync in
sibling SM100 kernels) so keeping the nv_dev version would diverge
from upstream's final sync design.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 21, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus three NV-side commits:

  - Enable bf16 bias output for FP8 GEMM on SM100 (xueweil)
  - SM90 paged MQA logits: support kv_block=32 and next_n=4 (Ray)
  - Fix SM90 paged MQA logits for post-deepseek-ai#304 metadata/schedule API mismatch

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh that was added by nv_dev's 8e866e4; deepseek-ai#304 removed
the equivalent sync upstream (replaced with NamedBarrier.sync in
sibling SM100 kernels) so keeping the nv_dev version would diverge
from upstream's final sync design.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 21, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus three NV-side commits:

  - Enable bf16 bias output for FP8 GEMM on SM100 (xueweil)
  - SM90 paged MQA logits: support kv_block=32 and next_n=4 (Ray)
  - Fix SM90 paged MQA logits for post-deepseek-ai#304 metadata/schedule API mismatch

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh that was added by nv_dev's 8e866e4; deepseek-ai#304 removed
the equivalent sync upstream (replaced with NamedBarrier.sync in
sibling SM100 kernels) so keeping the nv_dev version would diverge
from upstream's final sync design.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 22, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus three NV-side commits:

  - Enable bf16 bias output for FP8 GEMM on SM100 (xueweil)
  - SM90 paged MQA logits: support kv_block=32 and next_n=4 (Ray)
  - Fix SM90 paged MQA logits for post-deepseek-ai#304 metadata/schedule API mismatch

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh that was added by nv_dev's 8e866e4; deepseek-ai#304 removed
the equivalent sync upstream (replaced with NamedBarrier.sync in
sibling SM100 kernels) so keeping the nv_dev version would diverge
from upstream's final sync design.
Barry-Delaney added a commit to Barry-Delaney/DeepGEMM that referenced this pull request Apr 22, 2026
Brings in upstream commits d30fc36 (TMEM alloc/dealloc sync fix, deepseek-ai#292)
and 7f2a703 (public release 26/04: Mega MoE, FP4 indexer, and related
refactors, deepseek-ai#304), plus three NV-side commits:

  - Enable bf16 bias output for FP8 GEMM on SM100 (xueweil)
  - SM90 paged MQA logits: support kv_block=32 and next_n=4 (Ray)
  - Fix SM90 paged MQA logits for post-deepseek-ai#304 metadata/schedule API mismatch

The upstream deepseek-ai#304 refactor reshapes the attention/MQA layer; conflicts
with the pre-merge nv_dev code are resolved by taking the post-deepseek-ai#304
version. Also drops the redundant __syncthreads() in
sm100_bmk_bnk_mn.cuh that was added by nv_dev's 8e866e4; deepseek-ai#304 removed
the equivalent sync upstream (replaced with NamedBarrier.sync in
sibling SM100 kernels) so keeping the nv_dev version would diverge
from upstream's final sync design.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants