__syncthreads() vs cancelled thread

Hello,

I am asking if the __syncthreads() function will wait indefinitively for a specific thread which is cancelled (by executing a return inside the kernel function)?

Thanks

It’s illegal to create such a construct/condition. The behavior is unspecified.