台式机配置,i7,GTX650ti,安装ubuntu12.04
先看看官方的下载页https://developer.nvidia.com/cuda-toolkit-42-archive
按照123自己选择下载
1.照例先安装显卡驱动
切换到tty1(alt+ctrl+f1)
先“ps -ef |grep X ”找到X叉服务,kill之
然后再以管理员权限运行NVIDIA-Linux-x86-310.32.run
按照提示运行
最后重启之
2.安装cuda
在这里选择对应的安装包https://developer.nvidia.com/cuda-downloads
准备运行第一个CUDA程序,参考《CUDA by Example:An Introduction to General-Purpose GPU Programming》
HELLO WORLD!
#include "../common/book.h"
int main( void ){
printf( "Hello, World!\n" );
return 0;
}
<待续。。。>