Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
775f0528
Commit
775f0528
authored
Sep 15, 2020
by
sakthipriyas
Browse files
updated
parent
c9d84794
Changes
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/src/SpectralKurtosisCuda.cu
View file @
775f0528
...
...
@@ -71,10 +71,8 @@ __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
;
}
s1
[
l_index
]
+=
pow
;
s2
[
l_index
]
+=
pow_sq
;
}
__syncthreads
();
for
(
int
s
=
blockDim
.
x
/
2
;
s
>
32
;
s
>>=
1
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment