Open yamashin0922 opened 1 year ago
According to the log message, this error may be caused by that the cudnn path is not set correctly or cudnn is not installed in your system
Thank you for your prompt reply. I'll try to install cudnn property version and will feedback to you.
hello did you solve the problem
i am having the same issue
The first step is to check whether there are libcudnn.so and libcublas.so in the shared library. Enter below command in the terminal.
ls /usr/lib | grep lib
If you don't have libcudnn.so and libcublas.so files, you need to find their location by below command.
locate libcudnn.so
locate libcublas.so
In my case, libcudnn.so is located under /usr/local/cuda-12.1/targets/x86_64-linux/include/libcudnn.so.8.9.1
And libcublas.so is located under /usr/local/cuda-12.1/targets/x86_64-linux/lib/libcublas.so.12.1.3.1
Once you locate them, you need to add them into the shared library by following the steps below.
Enter usr/lib
folder
cd /usr/lib
Create libcudnn.so and libcublas.so
sudo ln -s /usr/local/cuda-12.1/targets/x86_64-linux/include/libcudnn.so.8.9.1 libcudnn.so
sudo ln -s /usr/local/cuda-12.1/targets/x86_64-linux/lib/libcublas.so.12.1.3.1 libcublas.so
Now, check whether they are added to the shared library,
ls /usr/lib | grep lib
If you can find libcudnn.so and libcublas.so with the above command, you wouldn't be having the issue.
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
I've fix the previous bugs according to the instruction. However, a new error demonstrates that "Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path!". Any suggestions?
same error
Same error. Do you have any solution about this? Thanks.
Use Cuda 11 instead of 12
We only release paddlepaddle-gpu cuda10.2 on pypi. If you want to install paddlepaddle-gpu with cuda version of 10.2/11.2/11.6/11.7, commands to install are on our website
Updated link to install paddlepaddle-gpu
for CUDA 10.2/11.2/11.6/11.7.
The first step is to check whether there are libcudnn.so and libcublas.so in the shared library. Enter below command in the terminal.
ls /usr/lib | grep lib
If you don't have libcudnn.so and libcublas.so files, you need to find their location by below command.
locate libcudnn.so
locate libcublas.so
In my case, libcudnn.so is located under
/usr/local/cuda-12.1/targets/x86_64-linux/include/libcudnn.so.8.9.1
And libcublas.so is located under/usr/local/cuda-12.1/targets/x86_64-linux/lib/libcublas.so.12.1.3.1
Once you locate them, you need to add them into the shared library by following the steps below.
Enter
usr/lib
foldercd /usr/lib
Create libcudnn.so and libcublas.so
sudo ln -s /usr/local/cuda-12.1/targets/x86_64-linux/include/libcudnn.so.8.9.1 libcudnn.so
sudo ln -s /usr/local/cuda-12.1/targets/x86_64-linux/lib/libcublas.so.12.1.3.1 libcublas.so
Now, check whether they are added to the shared library,
ls /usr/lib | grep lib
If you can find libcudnn.so and libcublas.so with the above command, you wouldn't be having the issue.
The version of cuda I have installed is12.3,Following this version, I downloaded the cudnn package and extracted it to /usr/local/cuda/include和/usr/local/cuda/lib64 cd usr/lib sudo ln -s /usr/local/cuda-12.3/targets/x86_64-linux/lib/libcudnn.so.8.9.1 libcudnn.so sudo ln -s /usr/local/cuda-12.1/targets/x86_64-linux/lib/libcublas.so.12.1.3.1 libcublas.so A new error has occurred: Could not load library libcudnn_ops_infer.so.8libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory C++ Traceback(most recent call last):
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
I've fix the previous bugs according to the instruction. However, a new error demonstrates that "Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path!". Any suggestions?
If you're missing libcudnn_ops_infer.so.8
or similar you need to do the same thing to add it to your library path. There's a few like this so I found it easiest to just do sudo ln -s /usr/local/lib/python3.10/dist-packages/nvidia/cudnn/lib/* .
(will vary based on wherever you found e.g. locate libcudnn_ops_infer.so.8
)
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
I've fix the previous bugs according to the instruction. However, a new error demonstrates that "Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path!". Any suggestions?
If you're missing
libcudnn_ops_infer.so.8
or similar you need to do the same thing to add it to your library path. There's a few like this so I found it easiest to just dosudo ln -s /usr/local/lib/python3.10/dist-packages/nvidia/cudnn/lib/* .
(will vary based on wherever you found e.g.locate libcudnn_ops_infer.so.8
)
I tried the same, but error still exists.
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
I've fix the previous bugs according to the instruction. However, a new error demonstrates that "Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path!". Any suggestions?
If you're missing
libcudnn_ops_infer.so.8
or similar you need to do the same thing to add it to your library path. There's a few like this so I found it easiest to just dosudo ln -s /usr/local/lib/python3.10/dist-packages/nvidia/cudnn/lib/* .
(will vary based on wherever you found e.g.locate libcudnn_ops_infer.so.8
)I tried the same, but error still exists.
same as you, tried the @JoshC8C7 's tips. but still not work.
Thanks @Gokulnath-V. Your advice resolved my issues with paddle running on gpu.
I've fix the previous bugs according to the instruction. However, a new error demonstrates that "Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory Please make sure libcudnn_ops_infer.so.8 is in your library path!". Any suggestions?
If you're missing
libcudnn_ops_infer.so.8
or similar you need to do the same thing to add it to your library path. There's a few like this so I found it easiest to just dosudo ln -s /usr/local/lib/python3.10/dist-packages/nvidia/cudnn/lib/* .
(will vary based on wherever you found e.g.locate libcudnn_ops_infer.so.8
)I tried the same, but error still exists.
My problem is resolved, i have installed cudnn properly, i am using paddlepaddle-gup==2.6.0. My cuda version is 12.2, nvidia-driver version is 535.
问题确认 Search before asking
Bug组件 Bug Component
Installation
Bug描述 Describe the Bug
The error message is shown when I try an inference with gpu using the configuration file in examples.
Here is all logs.
Could you help me to fix this?
It works when remove "--device=gpu" from command line.
复现环境 Environment
OS
GPU and drivers
nvcc
python
packages for python
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?