tensorrtx icon indicating copy to clipboard operation
tensorrtx copied to clipboard

./yolov5: error while loading shared libraries: libcudnn.so.8: cannot open shared object file: No such file or directory

Open APeiZou opened this issue 3 years ago • 3 comments

Env

  • GPU, P40
  • OS, Ubuntu18.04
  • Cuda 10.2
  • TensorRT 7.2.3.4

About this repo

  • master branch
  • yolov5

Your problem

  • what is your command? sudo ./yolov5 -s yolov5s.wts yolov5s.engine s
  • what's your output? ./yolov5: error while loading shared libraries: libcudnn.so.8: cannot open shared object file: No such file or directory
  • what output do you expect?

APeiZou avatar Jun 26 '22 03:06 APeiZou

Environment issue, the cudnn, tensorrt, cuda, etc, are not properly installed.

wang-xinyu avatar Jul 04 '22 03:07 wang-xinyu

make sure the compatible CUDNN libraries are added in the bashrc file

ZubairKhan001 avatar Jul 04 '22 13:07 ZubairKhan001

and, you should to link the library, for example: cd /usr/local/cuda-10.2/lib64 ln -snf libcudnn.so.8.x.x libcudnn.so.8 ln -snf libcudnn.so.8 libcudnn.so

JerryAuas avatar Jul 13 '22 23:07 JerryAuas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 12 '22 00:09 stale[bot]