Commit 3bc99e14 authored by sakthipriyas's avatar sakthipriyas
Browse files

sk kernel version latest

parent de81ff2b
...@@ -54,11 +54,10 @@ __global__ void compute_sk_kernel(thrust::complex<float> *data, std::size_t samp ...@@ -54,11 +54,10 @@ __global__ void compute_sk_kernel(thrust::complex<float> *data, std::size_t samp
} }
__syncthreads(); __syncthreads();
for(int s = 1; s < blockDim.x; s *= 2){ for(int s = blockDim.x / 2; s > 0; s >>= 1){
int index = 2 * s * l_index; if(l_index < s){
if(index < blockDim.x){ s1[l_index] += s1[l_index + s];
s1[index] += s1[index + s]; s2[l_index] += s2[l_index + s];
s2[index] += s2[index + s];
} }
__syncthreads(); __syncthreads();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment