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