Repository navigation
Add fence.proxy.async.shared::cta between mbarrier wait and TMA load. - #642
Conversation
|
Might be cleaner to use: from |
|
Curious, does the issue revealed by my script go away with |
|
@elvircrn Thank you for reporting this bug.
For this issue you mentioned, the current approach does not strictly conform to the CUDA memory model, but based on some experiments we have done and our assumptions about the TMA implementation, we believe the current approach is safe on the existing architecture. |
Here, using fence is unrelated to the TMA store, so for clarity, I will use the same naming as in CUTLASS: void fence_view_async_shared() |
Yes, I tried your script, and after the fix there are no issues: T=256: correct=1024/1024 |
Merge 8 upstream commits including: - fence.proxy.async.shared::cta for TMA load (deepseek-ai#642) - Fix single-node intra EP init (deepseek-ai#630) - Fix internode dispatch args (deepseek-ai#641) - Symmetric memory refactor with CPU buffer support - NCCL SO name resolution fix for pip wheels (deepseek-ai#627) - Various other updates (deepseek-ai#637, deepseek-ai#674) Conflicts resolved: - buffer.hpp: merged cpu_comm/cpu_buffer params with has_nvlink param - nccl.cu: merged symmetric alloc refactor with has_nvlink and debug prints - elastic.py: merged NCCL comm handle refactor with NVLink detection logic - setup.py: adopted upstream dynamic NCCL lib name resolution Co-Authored-By: Claude Opus 4.6 <[email protected]>
This fixes the issue mentioned in #621. Compared with the fix in #632, this version uses a CTA-scope fence, which resolves the problem while preserving performance.
The data race here comes from LDS and TMA loads, so we only need fence.proxy.async.shared::cta; to prevent the TMA load from being issued before LDS has completed.
Thanks to elvircrn's script, I've tried my fix on NVL72, the result is correct and the performance is as good as the original implementation.