## ubuntu16.04系统安装cuda 8.0##
- 下载CUDA 8.0
官网去下载,选择如图 - 安装CUDA
sudo dpkg -i xxx(xxx为文件名)
sudo apt-get update
sudo apt-get install cuda
======================================================
2018.12更新
现在直接sudo apt-get install cuda
会直接给我更新成10.0,我明明用的8.0的包,,,
所以需要改成
sudo apt-get install cuda-8.0
3.添加环境变量
sudo gedit /etc/profile
export PATH=/usr/local/cuda-8.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH
source /etc/profile
sudo reboot
4.编译检验
cd /usr/local/cuda/samples/
make
cd bin/x86_64/linux/release
./deviceQuery
5.查看CUDA版
nvcc -V