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

undefined symbol: _ZNK3c1010TensorImpl18compute_contiguousEv #233

Open
LANDDKPLA opened this issue Nov 4, 2023 · 0 comments
Open

undefined symbol: _ZNK3c1010TensorImpl18compute_contiguousEv #233

LANDDKPLA opened this issue Nov 4, 2023 · 0 comments

Comments

@LANDDKPLA
Copy link

LANDDKPLA commented Nov 4, 2023

Failed when Compiling CUDA operators python test.py.
Error information is as follows

(/data/Envs/dino39) /data/DINO/models/dino/ops$ python test.py
Traceback (most recent call last):
  File "/data/DINO/models/dino/ops/test.py", line 18, in <module>
    from functions.ms_deform_attn_func import MSDeformAttnFunction, ms_deform_attn_core_pytorch
  File "/data/DINO/models/dino/ops/functions/__init__.py", line 9, in <module>
    from .ms_deform_attn_func import MSDeformAttnFunction
  File "/data/DINO/models/dino/ops/functions/ms_deform_attn_func.py", line 18, in <module>
    import MultiScaleDeformableAttention as MSDA
ImportError: /data/Envs/dino39/lib/python3.9/site-packages/MultiScaleDeformableAttention-1.0-py3.9-linux-x86_64.egg/MultiScaleDeformableAttention.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl18compute_contiguousEv

My environment settings:

NVIDIA GeForce RTX 4090
gcc-9.4.0
cuda-11.8
python-3.9
torch==2.0.0 torchvision==1.15.1

The program were previously able to run python test.py in 2080 Ti, python-3.7, cuda-11.6 but failed to train because cuda out of memory. So I change to 4090 but still failed. What should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant