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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
57a55b04
Commit
57a55b04
authored
May 20, 2019
by
Tobias Winchen
Browse files
Update info output
parent
d0ef28a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/GatedSpectrometer.cuh
View file @
57a55b04
...
...
@@ -107,8 +107,8 @@ private:
HandlerType
&
_handler
;
cufftHandle
_fft_plan
;
int
_nchans
;
int
_call_count
;
u
int
64_t
_nchans
;
u
int
64_t
_call_count
;
std
::
unique_ptr
<
Unpacker
>
_unpacker
;
std
::
unique_ptr
<
DetectorAccumulator
<
IntegratedPowerType
>
>
_detector
;
...
...
psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu
View file @
57a55b04
...
...
@@ -193,7 +193,7 @@ GatedSpectrometer<HandlerType, IntegratedPowerType>::GatedSpectrometer(
_noOfBitSetsInSideChannel
.
resize
(
batch
/
(
_naccumulate
/
nBlocks
));
thrust
::
fill
(
_noOfBitSetsInSideChannel
.
a
().
begin
(),
_noOfBitSetsInSideChannel
.
a
().
end
(),
0L
);
thrust
::
fill
(
_noOfBitSetsInSideChannel
.
b
().
begin
(),
_noOfBitSetsInSideChannel
.
b
().
end
(),
0L
);
BOOST_LOG_TRIVIAL
(
debug
)
<<
" Bit set coun
r
er size: "
<<
_noOfBitSetsInSideChannel
.
size
();
BOOST_LOG_TRIVIAL
(
debug
)
<<
" Bit set coun
t
er size: "
<<
_noOfBitSetsInSideChannel
.
size
();
// on the host both power are stored in the same data buffer together with
// the number of bit sets
...
...
@@ -387,7 +387,6 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
static_cast
<
void
*>
(
_noOfBitSetsInSideChannel
.
b_ptr
()
+
i
),
1
*
sizeof
(
size_t
),
cudaMemcpyDeviceToHost
,
_d2h_stream
));
BOOST_LOG_TRIVIAL
(
info
)
<<
" TOBR NOF BITS SET: "
<<
_noOfBitSetsInSideChannel
.
b
()[
i
];
}
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Copy Data back to host"
;
...
...
@@ -397,7 +396,7 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
}
// calculate off value
BOOST_LOG_TRIVIAL
(
info
)
<<
"Buffer block: "
<<
_call_count
<<
" with "
<<
_noOfBitSetsInSideChannel
.
size
()
<<
" output heaps:"
;
BOOST_LOG_TRIVIAL
(
info
)
<<
"Buffer block: "
<<
_call_count
-
3
<<
" with "
<<
_noOfBitSetsInSideChannel
.
size
()
<<
"
x2
output heaps:"
;
for
(
size_t
i
=
0
;
i
<
_noOfBitSetsInSideChannel
.
size
();
i
++
)
{
size_t
memOffset
=
2
*
i
*
(
_nchans
*
sizeof
(
IntegratedPowerType
)
+
sizeof
(
size_t
));
...
...
Write
Preview
Markdown
is supported
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