总结 :
1.点软件个更新-系统更新
2.降级gcc到5.3
3.装CUDA及第二个包,加入PATH
4.CUDNN
5.Ancada..
6.TF
Ubuntu16.04 的GCC版本降级
http://blog.csdn.net/ytusdc/article/details/77980915
Ubuntu16.04 + cuda8.0 + GTX1080安装教程
http://www.bubuko.com/infodetail-1763998.html
https://segmentfault.com/a/1190000008234390
ubuntu16.04 + cuda8.0安装配置
http://blog.csdn.net/iotlpf/article/details/54175064
from http://blog.csdn.net/ss910/article/details/76165062
1.安装cuda8.0
http://blog.csdn.net/ss910/article/details/76099660
安装cuda8.0的步骤:
1.从官网下载
https://developer.nvidia.com/cuda-downloads
依次选择linux/x86_64/ubuntu/16.04/deb(local),下载,然后安装:
- sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
- sudo apt-get update
- sudo apt-get install cuda
然后下载双击安装patch2(cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb)。
在PATH变量中加入/usr/local/cuda-8.0/bin:
在LD_LIBRARY_PATH变量中添加/usr/local/cuda-7.5/lib64:打开配置文件,最后们加入以下几行
- export PATH=/usr/local/cuda-8.0/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH
命令行执行nvcc -V查看,出现下列文字表示安装成功:
- nvcc: NVIDIA (R) Cuda compiler driver
- Copyright (c) 2005-2016 NVIDIA Corporation
- Built on Tue_Jan_10_13:22:03_CST_2017
- Cuda compilation tools, release 8.0, V8.0.61
2.编译例程
- cd /usr/local/cuda-8.0/samples
- sudo make
编译完成后生成的可执行文件将会位于上述文件夹下的bin目录下。运行一个例子看看:
- cd bin/x86_64/linux/release
- ./deviceQuery
该程序将会给出当前电脑所安装的支持cuda的设备的信息,然后就可以开始使用cuda编程了。