Content deleted Content added
Line 56:
====Kernels====
Kernels can be thought of as the body of loops. For example, if the programmer was operating on a grid on the CPU he might have code that looked like this:
(To Be Done)
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, he would draw a full screen quad to create fragments over each grid cell (i.e. over each pixel).
|