Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] libhidet_runtime.so: undefined symbol: _ZNSt14regex_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSsEEcSt12regex_traitsIcEEC1Ev #469

Closed
egorsmkv opened this issue Jul 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@egorsmkv
Copy link

Describe the bug

I'm trying to test hidet 0.4.0 but getting this stack trace:

Traceback (most recent call last):
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/test_hidet.py", line 25, in <module>
    asr_model_opt = torch.compile(asr_model, backend="hidet")
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/torch/__init__.py", line 2113, in compile
    backend = _TorchCompileWrapper(backend, mode, options, dynamic)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/torch/__init__.py", line 1975, in __init__
    self.compiler_fn = lookup_backend(backend)
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/torch/_dynamo/backends/registry.py", line 60, in lookup_backend
    _lazy_import_entry_point(compiler_fn)
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/torch/_dynamo/backends/registry.py", line 112, in _lazy_import_entry_point
    compiler_fn = backend_eps[backend_name].load()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/__init__.py", line 15, in <module>
    from . import option
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/option.py", line 312, in <module>
    register_hidet_options()
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/option.py", line 133, in register_hidet_options
    from hidet.utils import git_utils
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/utils/__init__.py", line 23, in <module>
    from .benchmark import Bench, benchmark_func
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/utils/benchmark/__init__.py", line 12, in <module>
    from .bench import Bench, BenchData, do_bench, benchmark_func
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/utils/benchmark/bench.py", line 19, in <module>
    import hidet.cuda
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/cuda/__init__.py", line 20, in <module>
    from . import cublas
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/cuda/cublas/__init__.py", line 12, in <module>
    from .ffi import cublasComputeType, cudaDataType
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/cuda/cublas/ffi.py", line 17, in <module>
    from hidet.ffi.ffi import get_func
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/ffi/__init__.py", line 12, in <module>
    from .ffi import _LIB
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/ffi/ffi.py", line 100, in <module>
    load_library()
  File "/home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/ffi/ffi.py", line 35, in load_library
    _LIB_RUNTIME = ctypes.cdll.LoadLibrary(libhidet_runtime_path)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ctypes/__init__.py", line 460, in LoadLibrary
    return self._dlltype(name)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/yehor/projects/experiments/hidet-0.4.0-w2v2/.venv/lib/python3.12/site-packages/hidet/lib/libhidet_runtime.so: undefined symbol: _ZNSt14regex_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSsEEcSt12regex_traitsIcEEC1Ev

To Reproduce

Clone repo https://github.com/egorsmkv/wav2vec2-hidet-0.4.0 and test with the env.

Expected behavior

Just a run.

Enviroment

python: 3.12.4 (main, Jun 8 2024, 18:29:57) [GCC 11.4.0]
torch: 2.4.0
transformers: 4.43.3
hidet: 0.4.0

@egorsmkv egorsmkv added the bug Something isn't working label Jul 28, 2024
@vadiklyutiy
Copy link
Collaborator

@egorsmkv
Thank you for letting know. The bug was fixed in https://github.com/hidet-org/hidet/releases/tag/v0.4.1

vadiklyutiy pushed a commit that referenced this issue Dec 19, 2024
…then_else` while initializing `Conv2dTransposeGemmImageTask` (#470)

Closes #469
vadiklyutiy pushed a commit that referenced this issue Dec 20, 2024
…then_else` while initializing `Conv2dTransposeGemmImageTask` (#470)

Closes #469
vadiklyutiy pushed a commit that referenced this issue Dec 26, 2024
…then_else` while initializing `Conv2dTransposeGemmImageTask` (#470)

Closes #469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants