93
edits
Changes
GPUSquad
,→Assignment 2
=== Assignment 2 ===
We chose to move forward with the Jacobi Method for 2D Poisson Equations code.
We parallelized the original code by placing the jacobi calculations into a kernel. For this initial parallel version, we only used 1D threading and had each thread run a for loop for the other dimension.
The iters loop launches a kernel for each iteration and we use double buffering (where we choose to launch the kernel with either d_a, d_b or d_b, d_a) since we can't simply swap pointers like in the serial code.
<nowiki>****************</nowiki>
CODE
<nowiki>****************</nowiki>
<source>
}
</source>
<nowiki>****************</nowiki>
A2 TIMINGS
<nowiki>****************</nowiki>
[[File:dps915_gpusquad_a2_chart.png]]
[[File:Dps_915_gpusquad_ghostcellexample.png]]
<source>
</source>
[[File:dps915_gpusquad_a3chart.png]]