// WRONG: not all threads reach the barrier
if (threadIdx.x < 16) {
    doWork();
    __syncthreads();   // some threads never call this -- undefined behavior
}
