Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. __kernel void reduceURatios(__global myreal *coef, __global myreal *row, myreal ratio)
  2. {
  3. size_t gid = get_global_id(0);//line no 1
  4.  
  5. myreal pCoef = coef[gid];//line no 2
  6. myreal pRow = row[gid];//line no 3
  7.  
  8. pCoef = pCoef - (pRow * ratio);//line no 4
  9. coef[gid] = pCoef;//line no 5
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement