1. 环境
- 操作系统
Centos7.4 - 显卡
Navida GTX 1080Ti
2. 安装
2.1 未接显卡下安装(软件都是官网的最新安装包)
- 安装Anaconda和Tensorflow-gpu
[root@localhost VI_Train_install]# ./Anaconda3-5.1.0-Linux-x86_64.sh [root@localhost VI_Train_install]# export PATH="/root/anaconda3/bin:$PATH" [root@localhost VI_Train_install]# conda install --channel https://conda.anaconda.org/anaconda tensorflow-gpu=1.4.1 [root@localhost VI_Train_install]# conda install -c menpo opencv3
2.2 准备安装显卡驱动
插入显卡前先安装以下内容,并关闭neaou驱动,重新编译内核:
- 安装gcc kernel-headers kernel-devel
[root@localhost VI_Train_install]# yum -y install gcc gcc-c++ kernel-devel kernel-headers
- 在/usr/lib/modprobe.d/dist-blacklist.conf中添加以下两行内容
blacklist nouveau options nouveau modeset=0
- 备份当前镜像
[root@localhost VI_Train_install]# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
- 建立新的镜像
[root@localhost VI_Train_install]# dracut /boot/initramfs-$(uname -r).img $(uname -r)
- 关机并插入显卡
2.3 安装显卡
- init 3进入命令行模式(由于双显卡问题,需要确保网络可达,ssh登陆切换模式)
- 执行命令: ./NVIDIA-Linux-x86_64-390.42.run
- 安装完,由于双显卡问题,需要进bios把默认显示修改为PCI槽
网友评论