mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #533] Add barrier between cudaIpcCloseMemHandle and cudaFree in Buffer::destroy #616
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#616
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?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepEP/pull/533
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open
Base:
main← Head:fix/ipc-handle-close-barrier📝 Commits (1)
3d2826eAdd barrier between cudaIpcCloseMemHandle and cudaFree in Buffer::destroy📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
csrc/deep_ep.cpp(+6 -0)📄 Description
Summary
Background
According to CUDA documentation, it is undefined behavior to
cudaFreean exported memory region beforecudaIpcCloseMemHandleis called on all processes that opened the handle.Without this fix, in a multi-GPU scenario:
Test plan
Fixes #497
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.