2013年5月25日

CUDA学习入门-2

摘要: 1. nvidia提供了一个c++的类库thrust用来简化编程,在安装cuda toolkit时候已经包含了thrust这个库全是头文件,不需要添加任何库文件的依赖测试程序#include <thrust/host_vector.h>#include <thrust/device_vector.h>#include <thrust/generate.h>#include <thrust/sort.h>#include <thrust/copy.h>#include <algorithm>#include <cstd 阅读全文

posted @ 2013-05-25 18:52 cutepig 阅读(807) 评论(0) 推荐(0) 编辑

CUDA学习入门-1

摘要: 关于俺的显卡NVidia NVS 4200Msupport opencl, directx11, DirectCompute, OpenGL 2.1 Memory Amount 1GBCUDA compute capability 2.1步骤1. download cuda5 from https://developer.nvidia.com/thrust2. install中间有一步安装toolkit失败。。(为啥呀为啥?)3. 编译例子程序成功,但是运行失败F:\Documents and Settings\All Users\Application Data\NVIDIA Corpora 阅读全文

posted @ 2013-05-25 13:02 cutepig 阅读(8375) 评论(0) 推荐(0) 编辑

导航