Cuda安装
安装cuda是比较麻烦的一步,以下安装说明来自cuda的安装说明文件。遇到问题找官方解决方案,最便捷有效。
Perform the following steps to install CUDA and verify the installation.
Disable the Nouveau drivers:首先需要屏蔽ubuntu默认的显卡驱动
- Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the
following contents:blacklist nouveau options nouveau modeset=0
- Regenerate the kernel initramfs: 更新一下
$ sudo update-initramfs -u
- Reboot into runlevel 3 by temporarily adding the number "3" and the word
"nomodeset" to the end of the system's kernel boot parameters.
重新开机,输入 sudo init 3 切换到文本模式 - Run the installer silently to install with the default selections (implies acceptance of
the EULA):然后按ctrl+alt+F1打开tty1.将当前路径切换到NVIDA驱动安装文件的文件夹下,输入:sudo sh cuda_<version>_linux.run --silent