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

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

环境:
cuda11.0
CentOS 7
TensorFlow-GPU 2.3

成功安装,找不到显卡,报错:
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.

因为pytorch可以正常使用GPU,所有cuda安装是没有问题的,可以通过创建软链接解决。

sudo ln -s /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.10  /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcusolver.so.11

如图所示。

在这里插入图片描述

撒花。

你可能感兴趣的:(tensorflow,linux,人工智能)