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] undefined symbol: _ZN3c104cuda9SetDeviceEi #3060

Open
2 tasks done
JTShuai opened this issue Mar 18, 2024 · 0 comments
Open
2 tasks done

[Bug] undefined symbol: _ZN3c104cuda9SetDeviceEi #3060

JTShuai opened this issue Mar 18, 2024 · 0 comments

Comments

@JTShuai
Copy link

JTShuai commented Mar 18, 2024

Prerequisite

Environment

Pytorch and CUDA installed by docker image.
Ubuntu 20.04
CUDA version: 12.1
torch version: 2.1
mmengine version: 0.10.3
mmcv version: 2.1

mmcv installed by mim install mmcv

Reproduces the problem - code sample

Run the official check file check_installation.py

Reproduces the problem - command or script

python check_installation.py

Reproduces the problem - error message

Get error:

Traceback (most recent call last):
  File "check_instal.py", line 4, in <module>
    from mmcv.ops import box_iou_rotated
  File "/usr/local/lib/python3.8/dist-packages/mmcv/ops/__init__.py", line 3, in <module>
    from .active_rotated_filter import active_rotated_filter
  File "/usr/local/lib/python3.8/dist-packages/mmcv/ops/active_rotated_filter.py", line 10, in <module>
    ext_module = ext_loader.load_ext(
  File "/usr/local/lib/python3.8/dist-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /usr/local/lib/python3.8/dist-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi

Additional information

No response

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