mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[GH-ISSUE #33] Why doesn't it lead to a deadlock when only some threads call nvshmem_barrier_all? #32
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#32
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 @MoringKing on GitHub (Mar 1, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/33
nvshmem_barrier_all is used to synchronize all PE globally, but this function is called only when thread_id is equal to 32. Will it cause deadlock?

@LyricZhao commented on GitHub (Mar 3, 2025):
No,
nvshmem_barrier_allcan be called with only one thread (there's also some API warp/block-level API likenvshmemx_barrier_all_block). For more details, please refer to https://docs.nvidia.com/nvshmem/api/index.html.