3 ms·
If you mean branch prediction, then yes, it will end up inadvertently executing the wrong instructions and discard them, but it halts execution of the wrong bra
by astrodust 10y ago
If you mean branch prediction, then yes, it will end up inadvertently executing the wrong instructions and discard them, but it halts execution of the wrong branch at the first opportunity and reschedules to correct its mistake.
A GPU will execute both branches to completion.
- jasonwatkinspdx 10y agoNo, he means the SSE predication instructions. The comparison instructions let you build a mask vector, and instructions like blendv use that mask vector to only impact a subset of elements. It's been a common feature on many RISC and VLIW cpu's over the years. It is in no way unique to GPU's.
- astrodust 10y agoAh, thanks for clarifying.