sudo yum install kernel-devel-
@H_403_12@(uname−r)、kernel−headers− (uname -r) 手动下载,rpm -ivh安装禁用nouveau driver,创建
/etc/modprobe.d/blacklist-nouveau.conf
:
blacklist nouveau options nouveau modeset=0
Regenerate the kernel initramfs and 重启机器:
sudo dracut --force
sh cuda_8.0.44_linux.run
(全部默认选项) &chmod 755 -R /usr/local/cuda-8.0
cudnn安装:
tar -xzvf cudnn-8.0-linux-x64-v5.1.tgz
cd cudnn-8.0-linux-x64-v5.1
sudo cp lib64/* /usr/local/cuda/lib64/ sudo cp include/* /usr/local/cuda/include/
- 设置环境变量:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64
export PATH="/usr/local/cuda-8.0/bin:$PATH"
pip install tensorflow/theano/keras
(无法下载的包,手动下载,使用tensorflow_gpu-0.12.1-cp27-cp27mu-manylinux1_x86_64.whl)