Research Article
A Computational Realization of a Semi-Lagrangian Method for Solving the Advection Equation
| __global__ void unit_foo (float* inA, float out, int size) { | | int i=blockIdx.x*blockDim.x+threadIdx.x; | | if (i<size) | | out[i] = do_smb_with(inA[i]); | | } |
|