undefined symbol: cudaSetupArgument --> ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory
See original GitHub issueChecklist
- I have searched related issues but cannot get the expected help.
Describe the bug Bug occurs when I test the demo.py. ImportError: /home/xu/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument
Reproduction
- What command or script did you run?
from mmdet.apis import init_detector
- Did you make any modifications on the code or config? Did you understand what you have modified?
NO
Environment
- OS: [Ubuntu 16.04]
- GCC [5.4.0]
- PyTorch version [1.3.0]
- How you installed PyTorch [conda install torch]
- GPU model [GTX 1080Ti]
- CUDA and CUDNN version [CUDA Version 9.0.176]
Error traceback
from mmdet.apis import init_detector
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/xuhuanhua/mmdetection/mmdet/apis/__init__.py", line 2, in <module>
from .inference import (inference_detector, init_detector, show_result,
File "/home/xuhuanhua/mmdetection/mmdet/apis/inference.py", line 11, in <module>
from mmdet.core import get_classes
File "/home/xuhuanhua/mmdetection/mmdet/core/__init__.py", line 6, in <module>
from .post_processing import * # noqa: F401, F403
File "/home/xuhuanhua/mmdetection/mmdet/core/post_processing/__init__.py", line 1, in <module>
from .bbox_nms import multiclass_nms
File "/home/xuhuanhua/mmdetection/mmdet/core/post_processing/bbox_nms.py", line 3, in <module>
from mmdet.ops.nms import nms_wrapper
File "/home/xuhuanhua/mmdetection/mmdet/ops/__init__.py", line 2, in <module>
from .dcn import (DeformConv, DeformConvPack, DeformRoIPooling,
File "/home/xuhuanhua/mmdetection/mmdet/ops/dcn/__init__.py", line 1, in <module>
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv,
File "/home/xuhuanhua/mmdetection/mmdet/ops/dcn/deform_conv.py", line 9, in <module>
from . import deform_conv_cuda
ImportError: /home/xuhuanhua/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument
Bug fix
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
ImportError: libcudart.so.10.1: cannot open shared object file ...
so.10.1: cannot open shared object file: No such file or directory. I am using cuda-10.0 torch-1.4.0 mmdet-1.2.
Read more >Undefined functions examples, Undefined function graph ...
undefined symbol: cudaSetupArgument --> ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory #1705. Closed.
Read more >ImportError: libcudart.so.10.0: cannot open shared object file ...
I am facing the below issue on Xavier-B? ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory. Do I need...
Read more >PyTorch causing problems with CUDA on Colab - Reddit
[Errno 2] No such file or directory: '3DMM-Fitting-Pytorch/' ... ImportError: libc10_cuda.so: cannot open shared object file: No such file ...
Read more >cannot open shared object file: no such file or dir ectory
libcurl.so: cannot open shared object file: no such file or dir ectory. Add Answer | View In TPC Matrix. Technical Problem Cluster First...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @Xuhuanhua , This might because the CUDA environment you are currently running is different from that for compiling the code. You may check the version using
nvcc -V
andecho $CUDA_HOME
.https://github.com/open-mmlab/mmdetection/issues/1577