[GH-ISSUE #142] undefined symbol: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE #81

Open
opened 2026-10-26 21:12:03 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @harleyszhang on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/142

gcc version: 11.4.0
python version: 3.10
cuda version: 12.8
h100

when i run 'python setup.py install` success, import deep-gemm, error is:

import deep_gemm_cpp ImportError: /opt/conda/lib/python3.10/site-packages/deep_gemm-2.0.0+1876566-py3.10-linux-x86_64.egg/deep_gemm_cpp.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

Originally created by @harleyszhang on GitHub (Jul 28, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/142 gcc version: 11.4.0 python version: 3.10 cuda version: 12.8 h100 when i run 'python setup.py install` success, import deep-gemm, error is: ` import deep_gemm_cpp ImportError: /opt/conda/lib/python3.10/site-packages/deep_gemm-2.0.0+1876566-py3.10-linux-x86_64.egg/deep_gemm_cpp.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE `
Author
Owner

@LyricZhao commented on GitHub (Jul 30, 2025):

cc @LJC00118

<!-- gh-comment-id:3135034959 --> @LyricZhao commented on GitHub (Jul 30, 2025): cc @LJC00118
Author
Owner

@ankutalev commented on GitHub (Aug 1, 2025):

Patch

-cxx_flags = ['-std=c++20', '-O3', '-fPIC', '-Wno-psabi']
+cxx_flags = ['-std=c++20', '-O3', '-fPIC', '-Wno-psabi', '-D_GLIBCXX_USE_CXX11_ABI=0']

Fixed issue for me

<!-- gh-comment-id:3143922480 --> @ankutalev commented on GitHub (Aug 1, 2025): Patch ``` -cxx_flags = ['-std=c++20', '-O3', '-fPIC', '-Wno-psabi'] +cxx_flags = ['-std=c++20', '-O3', '-fPIC', '-Wno-psabi', '-D_GLIBCXX_USE_CXX11_ABI=0'] ``` Fixed issue for me
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/DeepGEMM#81
No description provided.