摘要:
__syncthreads() acts as a barrier at which all threads in the block must wait before any is allowed to proceed.//计算向量的内积程序#include<stdio.h>#define imin(a,b) (a<b?a:b)//N为输入的向量的规模const int N=33*1024;const int threadsPerBlock=256;const int blocksPerGrid= imin(32,(N+threadsPerBlock-1)/threadsP 阅读全文
posted @ 2012-06-20 15:44
quasi-mathematician
阅读(496)
评论(0)
推荐(0)

浙公网安备 33010602011771号