Skip to content

Fix an ABI breakage we met - #131

Merged
LyricZhao merged 1 commit into
deepseek-ai:mainfrom
RayWang96:fix_abi_breakage
Jul 21, 2025
Merged

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

Conversation

@RayWang96

Copy link
Copy Markdown
Collaborator

Use std::filesystem::directory_iterator instead of std::filesystem::recursive_directory_iterator to avoid an ABI breakage we met.

…ecursive_directory_iterator to avoid an ABI breakage we met
@RayWang96
RayWang96 requested a review from LyricZhao July 21, 2025 02:42
@LyricZhao
LyricZhao merged commit 436a563 into deepseek-ai:main Jul 21, 2025
LyricZhao added a commit that referenced this pull request Apr 16, 2026
* Use std::filesystem::directory_iterator instead of std::filesystem::recursive_directory_iterator to avoid an ABI breakage we met (#131)

* Code lint

---------

Co-authored-by: Chenggang Zhao <[email protected]>
LyricZhao pushed a commit that referenced this pull request Apr 16, 2026
* Fix sum_mk int overflow

* Revert "Fix sum_mk int overflow"

This reverts commit 9703c1f68de657fb147489e2baf4577fa57ac3b4.

* Fix sum_k * n overflow
shiyang814-cpu pushed a commit to shiyang814-cpu/hopper_fp8_fp4_g128 that referenced this pull request Nov 6, 2026
…deepseek-ai#131)

A CUDA graph kernel node keeps the same %gridid on every replay. The
mega_mhc split barriers tag each execution with %gridid, so after a replay
a barrier line still holds encode_state(grid_idx, kNumSplits), which is
exactly the state the next replay waits for. A Mix or Norm waiter whose
m-block init CTA has not started yet proceeds immediately and reads the
previous replay's split partials.

Tag executions with an epoch instead. The epoch and an exit count live in
the unused tail of the first barrier line, so the host-side buffer is
unchanged. Every CTA reads the epoch after cudaGridDependencySynchronize,
and the last CTA to retire resets the exit count and advances the epoch.

Signed-off-by: lightseek-bot <[email protected]>
Co-authored-by: LightSeek Foundation <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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