Commit 775f0528 authored by sakthipriyas's avatar sakthipriyas
Browse files

updated

parent c9d84794
......@@ -71,11 +71,9 @@ __global__ void compute_sk_kernel(const thrust::complex<float>* __restrict__ dat
int g_index = thread_offset + blockIdx.x * window_size;
pow = thrust::abs(data[g_index]) * thrust::abs(data[g_index]);
pow_sq = pow * pow;
if(l_index < blockDim.x){
s1[l_index] += pow;
s2[l_index] += pow_sq;
}
}
__syncthreads();
for(int s = blockDim.x / 2; s > 32; s >>= 1){
if(l_index < s){
......
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