[GH-ISSUE #309] Undefined Symbol: THPStream_Wrap #219

Open
opened 2026-10-26 09:56:49 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Strivin0311 on GitHub (Jul 17, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/309

Traceback (most recent call last):
File "/home/littsk/kato/workspace/cuda-library/deepep/tests/test_low_latency.py", line 7, in
import deep_ep
File "/home/littsk/kato/workspace/cuda-library/deepep/build/editable.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep/init.py", line 3, in
from .utils import EventOverlap
File "/home/littsk/kato/workspace/cuda-library/deepep/build/editable.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep/utils.py", line 8, in
from deep_ep_cpp import Config, EventHandle
ImportError: /home/littsk/kato/workspace/cuda-library/deepep/build/editable.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so: undefined symbol: _Z14THPStream_WrapRKN3c106StreamE

Hi~I encountered with the undefined symbol THPStream_Wrap, which seems related to torch's c10::Stream and THPStream.

env: ngc-2502 | sm90

Originally created by @Strivin0311 on GitHub (Jul 17, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/309 > Traceback (most recent call last): File "/home/littsk/kato/workspace/cuda-library/deepep/tests/test_low_latency.py", line 7, in <module> import deep_ep File "/home/littsk/kato/workspace/cuda-library/deepep/build/__editable__.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep/__init__.py", line 3, in <module> from .utils import EventOverlap File "/home/littsk/kato/workspace/cuda-library/deepep/build/__editable__.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep/utils.py", line 8, in <module> from deep_ep_cpp import Config, EventHandle ImportError: /home/littsk/kato/workspace/cuda-library/deepep/build/__editable__.deep_ep-1.1.0+92671e4-cp312-cp312-linux_x86_64/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so: undefined symbol: _Z14THPStream_WrapRKN3c106StreamE Hi~I encountered with the undefined symbol `THPStream_Wrap`, which seems related to torch's `c10::Stream` and `THPStream`. env: ngc-2502 | sm90
Author
Owner

@polarstormx commented on GitHub (Jul 17, 2025):

Same error, in addition, it ran successfully with ngc-2503

<!-- gh-comment-id:3083159642 --> @polarstormx commented on GitHub (Jul 17, 2025): Same error, in addition, it ran successfully with ngc-2503
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#219
No description provided.