【环境搭建与软件安装】nvidia驱动安装事宜
https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
https://docs.nvidia.com/cuda/archive/9.2/cuda-installation-guide-linux/index.html
CUDA Toolkit | Linux x86_64 Driver Version | Windows x86_64 Driver Version |
---|---|---|
CUDA 10.1.105 | >= 418.39 | >= 418.96 |
CUDA 10.0.130 | >= 410.48 | >= 411.31 |
CUDA 9.2 (9.2.148 Update 1) | >= 396.37 | >= 398.26 |
CUDA 9.2 (9.2.88) | >= 396.26 | >= 397.44 |
CUDA 9.1 (9.1.85) | >= 390.46 | >= 391.29 |
CUDA 9.0 (9.0.76) | >= 384.81 | >= 385.54 |
CUDA 8.0 (8.0.61 GA2) | >= 375.26 | >= 376.51 |
CUDA 8.0 (8.0.44) | >= 367.48 | >= 369.30 |
CUDA 7.5 (7.5.16) | >= 352.31 | >= 353.66 |
CUDA 7.0 (7.0.28) | >= 346.46 | >= 347.62 |
~$ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
查看驱动信息
~$ dpkg -l | grep nvidia ii nvidia-modprobe 384.103-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
看到左上角直接是cuda9.2,点击1.7GB的下载,下载的文件名字是cuda_9.2.88_396.26_linux.run,其中396.26是指你的驱动版本必须要比这个低,但也不能太低。安装其他版本也一样。
problem:
/var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Wed Mar 13 16:39:16 2019 installer version: 396.18 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin nvidia-installer command line: ./nvidia-installer --no-x-check --no-nouveau-check --no-opengl-files Unable to load: nvidia-installer ncurses v6 user interface Using: nvidia-installer ncurses user interface -> Detected 4 CPUs online; setting concurrency level to 4. -> Installing NVIDIA driver version 396.18. -> Running distribution scripts executing: '/usr/lib/nvidia/pre-install'... -> done. -> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Abort installation) ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
answer
I wouldn't disregard it. Ubuntu's driver packages don't interact well with the .run installer. I'd recommend either finding an Ubuntu package with the driver version you need, or uninstalling all of the Ubuntu NVIDIA driver packages before installing the .run package.
试试使用deb安装8.0版本;
https://developer.nvidia.com/cuda-80-ga2-download-archive;
Installation Instructions: `sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb` `sudo apt-get update` `sudo apt-get install cuda`
最后尝试了网上几乎所有方法,还是没有成功,没办法只能重装系统,然后就可以查询到nvidia-smi的结果。
可能最开始装系统的时候有问题吧。
参考
2. https://blog.csdn.net/huanghenghua/article/details/83309134;
3. http://www.cnblogs.com/djiankuo/p/7722063.html;
4. https://blog.csdn.net/u014561933/article/details/79958017;
5. https://devtalk.nvidia.com/default/topic/948395/cuda-setup-and-installation/device-node-verification-issues/;
6. https://blog.csdn.net/EliminatedAcmer/article/details/80528980;
7. https://devtalk.nvidia.com/default/topic/970641/linux/the-distribution-provided-pre-install-script-failed-are-you-sure-you-want-to-continue-/;
8. https://docs.nvidia.com/cuda/archive/;
9. https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#runfile;
10. https://devtalk.nvidia.com/default/topic/1031213/linux/problem-installing-nvidia-390-42-driver-on-ubuntu-16-04/;
11. https://blog.csdn.net/jiangyanting2011/article/details/78873113;
完
心正意诚,做自己该做的事情,做自己喜欢做的事情,安静做一枚有思想的技术媛。
版权声明,转载请注明出处:https://www.cnblogs.com/happyamyhope/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】