Advertisement
natsfr

Cuda array

Apr 17th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. ==== parent kernel ====
  2. printf("s before: %f - ",s[i].x);
  3. mixer <<<1, 64>>>(s, refexp, i);
  4. printf("s after: %f\n", s[i].x);
  5.  
  6. ==== mixer kernel ====
  7. __global__ void mixer(cuFloatComplex *s, float freq, uint32_t i) {
  8.     [....]
  9.     s[i+threadIdx.x].x = t.x;
  10.     s[i+threadIdx.x].y = t.y;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement