mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[GH-ISSUE #366] [Suggest] Fix undefined uint32 right-shift behavior in the transaction window #250
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/DeepEP#250
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?
Originally created by @a1372422617 on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/366
uint32 a = 0xffffffff;
a >= 32;
This is undefined behavior in C/C++. To prevent it from being optimized away cause hang or transaction window failure
now:
window >>= num_empty_slots;
fix:
window = num_empty == 32 ? 0 : window >> num_empty_slots;
@sphish commented on GitHub (Aug 21, 2025):
Thank you! I'll fix it later.