Divergence Demo
Key Insight
Thread divergence occurs when threads in a single warp must execute different paths of a conditional branch. Because GPUs rely on the SIMT model, mismatched execution paths are serialized, resulting in idle threads and significant performance degradation.