Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

python - Could not load dynamic library 'libcupti.so.11.0'; dlerror: libcupti.so.11.0: cannot open shared object file

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04)
  • Ubuntu 20.04
  • Python version: 3.6
  • Installed using virtualenv
  • CUDA/cuDNN version: 11.5 / 8.1.0.77
  • GPU model and memory: RTX 3090 24GB nvidia driver 460.39
  • TensorFlow version: 2.4.0 pip install tensorflow-gpu==2.4.0

Describe the problem

Installed cuda 11.2 and cudnn 8.1.0.77. Faced the following problem when I run train.py

Could not load dynamic library 'libcupti.so.11.0'; dlerror: libcupti.so.11.0: cannot open shared object file

question from:https://stackoverflow.com/questions/65933271/could-not-load-dynamic-library-libcupti-so-11-0-dlerror-libcupti-so-11-0-ca

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Solved the problem

  • List lib files on /usr/local/cuda-11.2/extras/CUPTI/lib64/lib*

    $ ls /usr/local/cuda-11.2/extras/CUPTI/lib64/lib*
    
  • I could not find libcupti.so.11.0. Other files should be there such that libcupti.so, libcupti.so.11.2, ...

  • Manage a link between libcupti.so.11.2 and libcupti.so.11.0 using a comand 'sudo ln -s'

    $ sudo ln -s /usr/local/cuda-11.2/extras/CUPTI/lib64/libcupti.so.11.2 /usr/local/cuda-11.2/extras/CUPTI/lib64/libcupti.so.11.0
    
  • List lib files on /usr/lib/x86_64-linux-gnu/libcup*

    ls /usr/lib/x86_64-linux-gnu/libcup*
    
  • I could not find libcupti.so.11.0. Other files should be there such that libcupti.so, libcupti.so,2, libcupti.so.10.1, ...

  • Manage a link between libcupti.so.11.2 and libcupti.so.11.0 using a comand sudo ln -s

    $ sudo ln -s /usr/local/cuda-11.2/extras/CUPTI/lib64/libcupti.so.11.2 /usr/lib/x86_64-linux-gnu/libcupti.so.11.0
    

This fixed the problem for me


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...