cancel
How did you syncthreads within the same warp?
cancel
Threads within the same warp are automatically sync by hardware at branch merge points.
I doubt programmer can do any syncthreads within the same warp.
The above code still might not syncthreads within the same warp, especially while branches are present.
kernel()
{
…
branch diverge
…
if (tid < 32) {do something}
…
branch reconverge
…
}