您的位置:首页 > 运维架构 > Linux

[CUDA]关于centos如何安装cuda driver

2016-01-13 12:52 489 查看
yum -y update
yum -y groupinstall “GNOME Desktop” “Development Tools”
yum -y install kernel-devel
Edit /etc/default/grub. Add “rd.driver.blacklist=nouveau nouveau.modeset=0″ to “GRUB_CMDLINE_LINUX”
grub2-mkconfig -o /boot/grub2/grub.cfg
List available kernels: awk -F\’ ‘$1==”menuentry ” {print $2}’ /etc/grub2.cfg
Use grub2-set-default to set the updated kernel to the default. The kernels are enumerated starting at 0
Reboot
Download the appropriate Nvidia driver for your card
Switch from graphical to text mode: systemctl isolate multi-user.target
Run the Nvidia driver installer
Remove the nouveau driver: yum remove xorg-x11-drv-nouveau
Backup old the old initramfs: mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
Create new initramfs: dracut /boot/initramfs-$(uname -r).img $(uname -r)
Reboot
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: