cuda
文章平均质量分 95
matdodo
use knowledge to make the world better.
展开
-
[cuda] 02 Communication Pattern and GPU hardware
1. parallel computing parallel computing : many threads solving a problem by working together. The key to work together is to communicate. 2. MAP Tasks read from and write to specific data element原创 2017-05-02 04:14:43 · 968 阅读 · 0 评论 -
使用cuda计算灰度图像
下面是一个利用cuda计算数组元素三次方的c程序。 #include // __global__ 是cuda核函数标识符。cuda会将这个函数识别为核函数 __global__ void cube(float * d_out, float * d_in){ // threadIdx.x 是thread的idx,本文中一共有96个线程 int idx = threadIdx.x; floa原创 2017-04-29 12:54:20 · 3472 阅读 · 3 评论