deepseek-ai / deepseek-ai/DeepEP
[Suggest] Fix undefined uint32 right-shift behavior in the transaction window
Open
- Dominant language
- Cuda
- Stars
- 10.1k
- Forks
- 1.4k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 2
Description
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;
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.