According to CUDA C++ Programming Guide 7.6
“”“__syncthreads()
is allowed in conditional code but only if the conditional evaluates identically across the entire thread block, otherwise the code execution is likely to hang or produce unintended side effects.”“”
I don’t understand what’s the exactly code for the conditional evaluates not identically.
i.e. What code will generate the hang or produce unintended side effects situation when using __syncthreads()?