TensorFlow2.5找不到显卡GPU:Could not load dynamic library ‘libcusolver.so.11‘; dlerror: libcusolver.so.11

环境:
cuda11.0
Ubuntu20.4
TensorFlow-GPU 2.5

成功安装,找不到显卡,报错:
Could not load dynamic library ‘libcusolver.so.11’; dlerror: libcusolver.so.11: cannot open shared object file: No such file or directory
Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU.

反复确认cuda已装好,但是确实没有这个文件,

解决方案,建立一个link:
sudo ln -s /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.11 /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.10

你可能感兴趣的:(杂记,cuda,gpu,linux,tensorflow)