212
edits
Changes
BetaT
,→Optimizing with 2 Kernels
I have removed the 2 inner for loops but kept the outer loop.
The program takes 2 arrays. Let us say the X's represent the arrays below
Array 1 Array 2
xxxxx xxxxx
xxxxx xxxxx
xxxxx xxxxx
xxxxx xxxxx
xxxxx xxxxx
__global__ void Calculate (float* u, float* un,int nx, int c, float dx, float dt)