question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined symbol: cudaSetupArgument --> ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory

See original GitHub issue

Checklist

  1. 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

  1. What command or script did you run?
from mmdet.apis import init_detector
  1. 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:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
ZwwWaynecommented, Nov 23, 2019

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 and echo $CUDA_HOME.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found