硬件:Nvidia GPU K20m
软件:CentOS 6.4
cuda_5.5.22_linux_64.run(从https://developer.nvidia.com/cuda-downloads下载针对RHEL 6版本的run文件)
以用户名cluster登录系统
1.检查是否安装了GPU:
lspci | grep -i nvidia2.安装gcc、g++编译器
sudo yum install gcc sudo yum install gcc-c++3.安装kernel-devel
sudo yum install kernel-devel4.安装Driver,Toolkit和Samples
sudo sh cuda_5.5.22_linux_64.run --kernel-source-path=‘/usr/src/kernels/2.6.32-358.23.2.el6.x86_64‘5.在/home/cluster/.bashrc文件加入如下内容:
export PATH=$PATH:/usr/local/cuda-5.5/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.5/lib64使配置立即生效:
source /home/cluster/.bashrc6.编译运行Samples中的示例程序,验证安装是否成功