Guest User

Untitled

a guest
Jul 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1.  
  2. __kernel void vector_add(__global const float *dx,__global float *a, __global float *calka) {
  3.     // Get the index of the current element to be processed
  4.     int i = get_global_id(0);
  5.  
  6.     calka[0] = calka[0] +  ((a[0] + (i * dx[0])) * (a[0] + (i * dx[0])));
  7.  
  8. }
Add Comment
Please, Sign In to add comment