2 ms·
The threads share control units. So if threads sharing the same control unit branch differently, they have to do both branches for all the threads (well, it dep
by seanmcdirmid 3y ago
The threads share control units. So if threads sharing the same control unit branch differently, they have to do both branches for all the threads (well, it depends on the GPU architecture). The threads will never finish before the others (again, if they are sharing the same control units). It works out for graphics and well engineered GGPU code because adjacent pixels and vertexes usually are similar enough to have a high chance of having the same branching behavior.