facebookresearch / nougat

Implementation of Nougat Neural Optical Understanding for Academic Documents
https://facebookresearch.github.io/nougat/
MIT License
8.81k stars 561 forks source link

Could not load library libcudnn_cnn_infer.so.8 #105

Closed monopoly-db closed 1 year ago

monopoly-db commented 1 year ago

On WSL Ubuntu 22.04.2 LTS, I had to create a link to /usr/lib/wsl/lib/libcuda.so.1 in .local/lib/pythonx.xx/site-packages/nvidia/cudnn/lib/ directory, where libcudnn_cnn_infer.so.8 was found to make it work.

CUDA was already installed on my Ubuntu WSL Windows 11 installation.

KangWooLee commented 1 year ago

I have exactly the same issue. I just saw it is closed. What was the solution?? How did you fix it

lukas-blecher commented 1 year ago

The way I understood it, the solution was part of the first comment

I had to create a link to /usr/lib/wsl/lib/libcuda.so.1 in .local/lib/pythonx.xx/site-packages/nvidia/cudnn/lib/ directory, where libcudnn_cnn_infer.so.8 was found to make it work.

KangWooLee commented 1 year ago

Thank you!