2013年8月21日
摘要: 最近在学习CUDA框架,折腾了一个多月终于把CUDA安装完毕,现在终于跑通了自己的一个CUDA的Hello world程序,值得欣喜~ 首先,关于CUDA的初始化,代码和解释如下,这部分主要参考GXW的文章://init the CUDA device bool initCUDA(){ int deviceCount; cudaGetDeviceCount(&deviceCount); //Get the CUDA GPU count if (deviceCount==0) { fprintf(stderr, "There is no device.\n"); re 阅读全文
posted @ 2013-08-21 16:45 晓O(∩_∩)O~ 阅读(466) 评论(0) 推荐(0) 编辑