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
Merge requests
!28
Fix time offset bug in the gated spectrometer; Added testing/consumer.hpp;...
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix time offset bug in the gated spectrometer; Added testing/consumer.hpp;...
fix-gspec
into
devel
Overview
0
Commits
2
Pipelines
1
Changes
11
Merged
Niclas Esser
requested to merge
fix-gspec
into
devel
2 years ago
Overview
0
Commits
2
Pipelines
1
Changes
11
Expand
Fix time offset bug in the gated spectrometer
Added testing/consumer.hpp
Added pipeline tests for the GatedSpectrometer-class
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
676ee5f8
2 commits,
2 years ago
11 files
+
295
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu
+
4
−
5
Options
@@ -328,25 +328,24 @@ bool GatedSpectrometer<HandlerType, InputType, OutputType>::operator()(RawBytes
if
(
newBlock
)
{
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Starting new output block."
;
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_d2h_stream
));
//
CUDA_ERROR_CHECK(cudaStreamSynchronize(_d2h_stream));
outputDataStream
->
swap
(
_proc_stream
);
}
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Processing block."
;
process
(
inputDataStream
,
outputDataStream
);
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_proc_stream
));
process
(
inputDataStream
,
outputDataStream
);
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Processing block finished."
;
/// For one pol input and power out
/// ToDo: For two pol input and power out
/// ToDo: For two pol input and stokes out
if
((
_call_count
==
2
)
||
(
!
newBlock
))
{
return
false
;
}
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_d2h_stream
));
outputDataStream
->
data2Host
(
_d2h_stream
);
if
(
_call_count
==
3
)
{
if
(
_call_count
<
3
+
_nBlocks
)
{
return
false
;
}
Loading