General-purpose computing on graphics processing units: Difference between revisions

Content deleted Content added
QuasarTE (talk | contribs)
m Flow control: Spelling mistake.
Line 76:
In regular programs it is possible to control the flow of the program using if-then-else statements and various forms of loops. Such flow control structures have only recently been added to GPUs. Conditional writes could be accomplished using a series of simpler instructions, but looping and conditional branching were not possible.
 
Recent GPUs allow branching, but usually with a performance penalty. Branching should generally be avoided in inner loops, whether in CPU or GPU code, and various techniques, such as static branch resultionresolution, pre-computation, and Z-cull{{ref|survey}} can be used to achieve branching when hardware support does not exist.
 
===GPU techniques===