Fedora 23+CUDA 8.0+ GTX970 安装
2017-03-07 22:03
218 查看
https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
PRE-INSTALLATION ACTIONS
Some actions must be taken before the CUDA Toolkit and Driver can be installed on
Linux:
‣ Verify the system has a CUDA-capable GPU.
‣ Verify the system is running a supported version of Linux.
‣ Verify the system has gcc installed.
‣ Verify the system has the correct kernel headers and development packages
installed.
‣ Download the NVIDIA CUDA Toolkit.
‣ Handle conflicting installation methods.
As follows:
Disable nouveau and
Reboot to runlevel 3
1.开机按Ctrl+Alt+F5 进入字符界面
2.在root 下输入 yum list NVIDIA 查找安装的驱动名称
3.yum remove name
4.reboot
https://testinggetsreal.com/2016/12/27/how-to-install-tensorflow-on-fedora-with-cuda-gpu-acceleration/
https://nmilosev.svbtle.com/fedora-24-bumblebee-nvidia-cuda-theano
telinit 5
lsmod | grep nouveau
sudo sh cuda_8.0.27_linux.run --tmpdir=/opt/temp/ --no-opengl-libs
PRE-INSTALLATION ACTIONS
Some actions must be taken before the CUDA Toolkit and Driver can be installed on
Linux:
‣ Verify the system has a CUDA-capable GPU.
‣ Verify the system is running a supported version of Linux.
‣ Verify the system has gcc installed.
‣ Verify the system has the correct kernel headers and development packages
installed.
‣ Download the NVIDIA CUDA Toolkit.
‣ Handle conflicting installation methods.
lspci | grep -i nvidia uname -m && cat /etc/*release gcc --version sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
As follows:
[root@localhost ~]# lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1) [root@localhost ~]# uname -m && cat /etc/*release x86_64 Fedora release 23 (Twenty Three) NAME=Fedora VERSION="23 (Workstation Edition)" ID=fedora VERSION_ID=23 PRETTY_NAME="Fedora 23 (Workstation Edition)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:23" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=23 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=23 PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation Fedora release 23 (Twenty Three) Fedora release 23 (Twenty Three) [root@localhost ~]# gcc --version gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~]# uname -r 4.2.3-300.fc23.x86_64 [root@localhost ~]# gcc --version gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~]# sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Disable nouveau and
[root@localhost ~]# echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf [root@localhost ~]# vi /etc/sysconfig/grub [root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg [root@localhost ~]# vi /etc/dnf/dnf.conf [root@localhost ~]# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img [root@localhost ~]# dracut /boot/initramfs-$(uname -r).img $(uname -r)
Reboot to runlevel 3
[root@localhost ~]# systemctl set-default multi-user.target Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target. [root@localhost ~]# reboot
1.开机按Ctrl+Alt+F5 进入字符界面
2.在root 下输入 yum list NVIDIA 查找安装的驱动名称
3.yum remove name
4.reboot
https://testinggetsreal.com/2016/12/27/how-to-install-tensorflow-on-fedora-with-cuda-gpu-acceleration/
https://nmilosev.svbtle.com/fedora-24-bumblebee-nvidia-cuda-theano
systemctl set-default graphical.target
systemctl set-default multi-user.target
telinit 5
lsmod | grep nouveau
sudo sh cuda_8.0.27_linux.run --tmpdir=/opt/temp/ --no-opengl-libs
echo 'blacklist nouveau' >> /etc/modprobe.d/disable-nouveau.conf echo 'nouveau modeset=0' >> /etc/modprobe.d/disable-nouveau.conf
相关文章推荐
- Fedora 13 Linux下安装Myeclipse8.0
- vmware workstation 8.0安装fedora16时,出现"Automatic partitioning Errors"的错误
- 安装Mysql 5.7 on fedora23 kde
- 安装Linux系统Fedora 23
- 如何在fedora23上安装和运行MySQL server (MySQL 已经被MariaDB取代)
- 硬盘安装FEDORA8.0
- 笔记本电脑安装工作用Fedora23和ubuntu14实战
- VirtualBox 5.0.10 中 Fedora 23 在安装了增强工具后无法自动调节虚拟机分辨率的问题(改)
- 在Fedora 23/22, CentOS/RHEL 7.1 上安装Google Chrome的方法
- Fedora23下安装flash
- Fedora14安装Vmware Tools详细步骤 阐释(VMware版本为8.0,对比在ubuntu下安装vmware Tools的差异)
- Fedora (server) 23安装
- Fedora 23 下安装 Hadoop 2.6.2
- 在Fedora23中安装VirtualBox增强功能
- Fedora 23 Wine TM 2013 Preview2安装过程/TXPlatform导致无法登录问题最新解决方案
- Fedora 12 Linux下安装Myeclipse8.0教程
- 通过Grub安装或者升级Fedora 1.0 Redhat 9.0 8.0 7.X AS 2.1 AS3.0等发行版
- Fedora23安装以后要做的优化配置
- fedora23安装flash
- Fedora 23 开发环境安装和基本配置