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

updated

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