__syncthreads();这是所有block内的所有线程同步吗?

__syncthreads();这是所有block内的所有线程同步吗?

是的,如果这个用不好的话,会很杯具,最常见的问题就是有前面用了break,return等,然后又用这个,呵呵