mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #292] [MERGED] Explicitly destroy the C++ runtime and release resources. #509
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#509
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/292
Author: @sphish
Created: 7/10/2025
Status: ✅ Merged
Merged: 7/11/2025
Merged by: @LyricZhao
Base:
main← Head:explicitly-destroy📝 Commits (4)
a0d5586Explicitly destroy the C++ runtime and release resources.73823d8Small fix058d696fix typo65b697cAdd a flag to control whether explicitdestroy()is required.📊 Changes
6 files changed (+87 additions, -44 deletions)
View changed files
📝
csrc/deep_ep.cpp(+51 -35)📝
csrc/deep_ep.hpp(+8 -1)📝
deep_ep/buffer.py(+19 -2)📝
tests/test_internode.py(+3 -2)📝
tests/test_intranode.py(+3 -2)📝
tests/test_low_latency.py(+3 -2)📄 Description
Since operations like
nvshmem_finalizemay cause Python's exception handling process to get stuck, we decoupled the destructor and resource release in a manner similar to PyTorch NCCL.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.