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

Content deleted Content added
it:
Line 55:
 
====Kernels====
Kernels can be thought of as the body of loops. For example, if the programmer was operating on a grid on the CPU shehe might have code that looked like this:
 
On the GPU, the programmer only specifies the body of the loop as the kernel and what data to loop over by drawing geometry. For example, if the programmer wanted to run the kernel over the entire grid, she would draw a full screen quad to create fragments over each grid cell (i.e. over each pixel).