tiny-gpu icon indicating copy to clipboard operation
tiny-gpu copied to clipboard

On branch divergence

Open redgpu opened this issue 1 year ago • 0 comments

In real GPUs, individual threads can branch to different PCs, causing branch divergence where a group of threads threads initially being processed together has to split out into separate execution.

It's simpler than that: the execution continues for both branches and a mask per thread controls if you store the computed value of that thread or not.

redgpu avatar Apr 25 '24 15:04 redgpu