4 ms·
"of course real branches happen in GPU code" My understanding was that they don't. All executions inside a "branch" always get executed, they're simply predica
by mgaunard 2y ago
"of course real branches happen in GPU code"
My understanding was that they don't. All executions inside a "branch" always get executed, they're simply predicated to do nothing if the condition to enter is not true.
- ack_complete 2y agoThat's only if execution is incoherent. If all threads in a warp follow the branch the same way, then all of the instructions in the not taken branch are skipped.