环境:Ubuntu 14.04(台式机)+Cuda7.0
1. 判断安装环境:
The setup of CUDA development tools on a system running the appropriate version of Linux consists of a few simple steps:
- Verify the system has a CUDA-capable GPU.
- Verify the system has a supported version of Linux.
- Verify the system has gcc installed.
2. 下载镜像:
https://developer.nvidia.com/cuda-downloads
下run好了
3.关闭X server
ctr+alt+F1进入文本编辑界面
sudo /etc/init.d/lightdm stop
进入到安装目录之下(.run所在目录)
- chmod +x cuda_7.0.28_linux.run
- sudo ./cuda_7.0.28_linux.run
一路确定,yes输过去
Driver: Installed
Toolkit: Installed In /Usr/Local/Cuda-5.0
Samples: Installed
sudo /etc/init.d/lightdm start
ctr+alt+F7回到图形界面
8. 环境变量,Path配置:
$sudo gedit /etc/profile或~/.bashrc
- export PATH=$PATH:/usr/local/cuda-7.0/bin
- export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:/lib
使之生效:
source /etc/profile(对应profile)或sudo ldconfig(对应bashrc)
成功
usr/local/cuda-7.0/libnsight 下的nsight就是集成开发环境