libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into this program
问题描述: tensorflow 调用GPU时报错:libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into this program
解决方法:
- 找到libcuda.so文件位置:find -name libcuda.so*)
- 将libcuda.so, libcuda.so.1, libcuda.so.410.48(41048为安装版本)文件复制到LD_LIBRARY_PATH中(查看目录:echo $LD_LIBRARY_PATH):
cp /usr/lib64/libcuda.so* /usr/local/cuda-10.0/lib64/ - 建立对应链接:
ln -s libcuda.so.1 libcuda.so
ln -s libcuda.so.410.48 libcuda.so.1
解决~
(查看链接:ls -al libcuda.so)
detection error: path error: ///usr/local/cuda/lib64/libcuda.so.1: too many levels of symbolic links\\n\""": unknown.
经检查发现libcuda.so.1,libcuda.so.410.48的软连接建立出问题,服务器上ls显示红色,删除后重新导入建立连接,libcuda.so, libcuda.so.1显示正常的浅绿色,问题解决。