Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. template <typename T>
  2. __global__ void cmtest(const T * __restrict__ a, const T * __restrict__ b, T * __restrict__ c, int num_arr, int len, int stride_a, int stride_b, int stride_c){
  3. int idx=threadIdx.x+blockDim.x*blockIdx.x;
  4. while (idx < num_arr){
  5. smerge(a+idx, b+idx, c+idx, len, len, stride_a, stride_b, stride_c);
  6. idx += blockDim.x*gridDim.x;
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement