Skip to content

undefined symbol: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE #142

Open

Description

@harleyszhang

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

Activity

  1. LyricZhao commented on Jul 30, 2025

    @LyricZhao
    Collaborator
  2. ankutalev commented on Aug 1, 2025

    @ankutalev

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions