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
5964139e
Commit
5964139e
authored
Apr 12, 2019
by
Tobias Winchen
Browse files
Cleaned debug messages
parent
3cc83187
Changes
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu
View file @
5964139e
...
...
@@ -319,19 +319,14 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
return
false
;
}
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Copy Data back to device"
;
CUDA_ERROR_CHECK
(
cudaStreamSynchronize
(
_d2h_stream
));
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Swap host power"
;
_host_power_db
.
swap
();
BOOST_LOG_TRIVIAL
(
debug
)
<<
"swap no of bit channel"
;
std
::
swap
(
_noOfBitSetsInSideChannel_host
[
0
],
_noOfBitSetsInSideChannel_host
[
1
]);
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Foo"
;
CUDA_ERROR_CHECK
(
cudaMemcpyAsync
(
static_cast
<
void
*>
(
_host_power_db
.
a_ptr
()),
static_cast
<
void
*>
(
_power_db_G0
.
b_ptr
()),
_power_db_G0
.
size
()
*
sizeof
(
IntegratedPowerType
),
cudaMemcpyDeviceToHost
,
_d2h_stream
));
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Bar"
;
CUDA_ERROR_CHECK
(
cudaMemcpyAsync
(
static_cast
<
void
*>
(
_host_power_db
.
a_ptr
()
+
(
_power_db_G0
.
size
())),
// as I am adding BEFORE the cast to void, I dont need the sizeof
...
...
@@ -339,9 +334,9 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
_power_db_G1
.
size
()
*
sizeof
(
IntegratedPowerType
),
cudaMemcpyDeviceToHost
,
_d2h_stream
));
//
CUDA_ERROR_CHECK(cudaMemcpyAsync(static_cast<void *>(&_noOfBitSetsInSideChannel_host[0]),
//
static_cast<void *>(_noOfBitSetsInSideChannel.b_ptr()),
//
1 * sizeof(size_t),cudaMemcpyDeviceToHost, _d2h_stream));
CUDA_ERROR_CHECK
(
cudaMemcpyAsync
(
static_cast
<
void
*>
(
&
_noOfBitSetsInSideChannel_host
[
0
]),
static_cast
<
void
*>
(
_noOfBitSetsInSideChannel
.
b_ptr
()),
1
*
sizeof
(
size_t
),
cudaMemcpyDeviceToHost
,
_d2h_stream
));
BOOST_LOG_TRIVIAL
(
debug
)
<<
"Copy Data back to device"
;
...
...
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