Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psrdada_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPIfR-BDG
psrdada_cpp
Commits
9d354aa3
Commit
9d354aa3
authored
7 years ago
by
Ewan Barr
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up and added flag to only call handler once the data is valid
parent
ea50798a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
psrdada_cpp/effelsberg/edd/detail/eddfft.cu
+0
-2
0 additions, 2 deletions
psrdada_cpp/effelsberg/edd/detail/eddfft.cu
psrdada_cpp/effelsberg/edd/src/eddfft.cu
+1
-1
1 addition, 1 deletion
psrdada_cpp/effelsberg/edd/src/eddfft.cu
with
1 addition
and
3 deletions
psrdada_cpp/effelsberg/edd/detail/eddfft.cu
+
0
−
2
View file @
9d354aa3
...
@@ -22,7 +22,6 @@ SimpleFFTSpectrometer<HandlerType>::SimpleFFTSpectrometer(
...
@@ -22,7 +22,6 @@ SimpleFFTSpectrometer<HandlerType>::SimpleFFTSpectrometer(
,
_nbits
(
nbits
)
,
_nbits
(
nbits
)
,
_handler
(
handler
)
,
_handler
(
handler
)
,
_fft_plan
(
0
)
,
_fft_plan
(
0
)
,
_data_valid
(
true
)
,
_pass
(
0
)
,
_pass
(
0
)
{
{
BOOST_LOG_TRIVIAL
(
debug
)
BOOST_LOG_TRIVIAL
(
debug
)
...
@@ -154,7 +153,6 @@ bool SimpleFFTSpectrometer<HandlerType>::operator()(RawBytes& block)
...
@@ -154,7 +153,6 @@ bool SimpleFFTSpectrometer<HandlerType>::operator()(RawBytes& block)
_detected_host_previous
->
size
()
*
sizeof
(
float
));
_detected_host_previous
->
size
()
*
sizeof
(
float
));
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Calling handler"
;
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Calling handler"
;
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_h2d_stream
));
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_h2d_stream
));
std
::
swap
(
_edd_raw_current
,
_edd_raw_previous
);
std
::
swap
(
_edd_raw_current
,
_edd_raw_previous
);
...
...
This diff is collapsed.
Click to expand it.
psrdada_cpp/effelsberg/edd/src/eddfft.cu
+
1
−
1
View file @
9d354aa3
...
@@ -110,7 +110,7 @@ void detect_and_accumulate(float2* __restrict__ in, float* __restrict__ out, int
...
@@ -110,7 +110,7 @@ void detect_and_accumulate(float2* __restrict__ in, float* __restrict__ out, int
float
y
=
tmp
.
y
*
tmp
.
y
;
float
y
=
tmp
.
y
*
tmp
.
y
;
sum
+=
x
+
y
;
sum
+=
x
+
y
;
}
}
out
[
write_offset
+
chan_idx
]
=
sum
;
out
[
write_offset
+
chan_idx
]
=
sum
/
naccumulate
;
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment