C/C++教程

深度学习环境配置 ubuntu安装CUDA10.2失败!

本文主要是介绍深度学习环境配置 ubuntu安装CUDA10.2失败!,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

深度学习环境配置 ubuntu安装CUDA10.2失败!

按照网上教程安装CUDA10.1 或 CUDA10.2时候,即执行官方的命令的时候

root@6c000e89a184:~# sh cuda_10.2.89_440.33.01_linux.run

执行完这条命令后,直接提示了安装错误。查看log

[INFO]: File does not exist, skipping: /usr/local/cuda-10.2/share/gdb/python/gdb/printer/bound_registers.py
[INFO]: Uninstall entry: file /usr/local/cuda-10.2/share/gdb/python/gdb/prompt.py 5153cbe67243ff2090be1ba7c3a76d5a
[INFO]: File does not exist, skipping: /usr/local/cuda-10.2/share/gdb/python/gdb/prompt.py
[INFO]: Uninstall entry: file /usr/local/cuda-10.2/share/gdb/python/gdb/frames.py 47f741a775fb5c97a4f9af9cc0f9bd3d
[INFO]: File does not exist, skipping: /usr/local/cuda-10.2/share/gdb/python/gdb/frames.py
[INFO]: Uninstall entry: file /usr/local/cuda-10.2/share/gdb/python/gdb/xmethod.py f384593dfaf26f714f95a01060bb8b53
[INFO]: File does not exist, skipping: /usr/local/cuda-10.2/share/gdb/python/gdb/xmethod.py
[INFO]: Uninstall entry: dir /usr/local/cuda-10.2/share/gdb/python/gdb/command/
[INFO]: Uninstall entry: file /usr/local/cuda-10.2/share/gdb/python/gdb/command/__init__.py ffc0751143f05f8dd89c1c8530545af1
[INFO]: File does not exist, skipping: /usr/local/cuda-10.2/share/gdb/python/gdb/command/__init__.py

经过查阅资料,发现在sh xx.run后面加入路径即可正常安装,命令如下

sh XX.linux.run --silent --toolkit --samples --librarypath=/usr/local/cuda

#比如是CUDA10.2   则输入
root@6c000e89a184:~# sh cuda_10.2.89_440.33.01_linux.run --silent --toolkit --samples --librarypath=/usr/local/cuda-10.2
这篇关于深度学习环境配置 ubuntu安装CUDA10.2失败!的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!