Fedora 23+CUDA 8.0+ GTX970 安装

Posted 华东 博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fedora 23+CUDA 8.0+ GTX970 安装相关的知识,希望对你有一定的参考价值。

 

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.

lspci | grep -i nvidia
uname -m && cat /etc/*release
gcc --version
sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

As follows:

[[email protected] ~]# 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)
[[email protected] ~]# 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)
[[email protected] ~]# 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.

[[email protected] ~]# uname -r
4.2.3-300.fc23.x86_64
[[email protected] ~]# 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.

[[email protected] ~]# sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

 

Disable nouveau  and

[[email protected] ~]# echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
[[email protected] ~]# vi /etc/sysconfig/grub
[[email protected] ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
[[email protected] ~]# vi /etc/dnf/dnf.conf
[[email protected] ~]# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
[[email protected] ~]# dracut /boot/initramfs-$(uname -r).img $(uname -r)

 Reboot to runlevel 3

[[email protected] ~]# 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.
[[email protected] ~]# reboot

 

  

以上是关于Fedora 23+CUDA 8.0+ GTX970 安装的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu14.04 + GTX980ti + cuda 8.0 ---Opencv3.1.0配置

Windows 上的 Theano + Cuda 8.0 - 编译错误

ubuntu16.04安装CUDA 8.0(很详尽,包括一些坑的解决方法)

ubuntu16.04 tensoflow使用服务器需要支持gpu吗

gtx 1660 的cuda计算能力是多少

GTX 1080+Ubuntu16.04+CUDA8.0+cuDNN5.0+TensorFlow