Open main menu

CDOT Wiki β

Changes

BetaT

213 bytes added, 18:06, 3 April 2017
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
 
Upon initialization the 1st column of the first array gets set, this will be represented by o's
 
txxxx xxxxx
txxxx xxxxx
 
txxxx xxxxx
 
txxxx xxxxx
 
txxxx xxxxx
 
__global__ void Calculate (float* u, float* un,int nx, int c, float dx, float dt)
212
edits