摘要: #include #include const int DIM = 1024;typedef struct cuComplex{ float r; float i; __device__ cuComplex(float a, float b) :r(a) ,i(b) { } __device__ float magnitude2(void) { return r * r + i * i; } __device__ cuComplex operator * (const cuComplex & a) ... 阅读全文
posted @ 2014-01-22 21:07 20118281131 阅读(704) 评论(1) 推荐(0) 编辑
摘要: cuda 阅读全文
posted @ 2014-01-22 09:08 20118281131 阅读(1082) 评论(0) 推荐(0) 编辑