处理线程同步
void __syncthreads();
等待block所有的thread都到大这个点
int __syncthreads_count(int predicate);
int __syncthreads_and(int predicate);
int __syncthreads_or(int predicate);
void __syncwarp(unsigned mask=0xffffffff);
处理线程同步
void __syncthreads();
等待block所有的thread都到大这个点
int __syncthreads_count(int predicate);
int __syncthreads_and(int predicate);
int __syncthreads_or(int predicate);
void __syncwarp(unsigned mask=0xffffffff);