Skip to content
Snippets Groups Projects
Commit 5964139e authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Cleaned debug messages

parent 3cc83187
No related branches found
No related tags found
No related merge requests found
...@@ -319,19 +319,14 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b ...@@ -319,19 +319,14 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
return false; return false;
} }
BOOST_LOG_TRIVIAL(debug) << "Copy Data back to device";
CUDA_ERROR_CHECK(cudaStreamSynchronize(_d2h_stream)); CUDA_ERROR_CHECK(cudaStreamSynchronize(_d2h_stream));
BOOST_LOG_TRIVIAL(debug) << "Swap host power";
_host_power_db.swap(); _host_power_db.swap();
BOOST_LOG_TRIVIAL(debug) << "swap no of bit channel";
std::swap(_noOfBitSetsInSideChannel_host[0], _noOfBitSetsInSideChannel_host[1]); std::swap(_noOfBitSetsInSideChannel_host[0], _noOfBitSetsInSideChannel_host[1]);
BOOST_LOG_TRIVIAL(debug) << "Foo";
CUDA_ERROR_CHECK( CUDA_ERROR_CHECK(
cudaMemcpyAsync(static_cast<void *>(_host_power_db.a_ptr()), cudaMemcpyAsync(static_cast<void *>(_host_power_db.a_ptr()),
static_cast<void *>(_power_db_G0.b_ptr()), static_cast<void *>(_power_db_G0.b_ptr()),
_power_db_G0.size() * sizeof(IntegratedPowerType), _power_db_G0.size() * sizeof(IntegratedPowerType),
cudaMemcpyDeviceToHost, _d2h_stream)); cudaMemcpyDeviceToHost, _d2h_stream));
BOOST_LOG_TRIVIAL(debug) << "Bar";
CUDA_ERROR_CHECK(cudaMemcpyAsync( CUDA_ERROR_CHECK(cudaMemcpyAsync(
static_cast<void *>(_host_power_db.a_ptr() + 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 (_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 ...@@ -339,9 +334,9 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
_power_db_G1.size() * sizeof(IntegratedPowerType), cudaMemcpyDeviceToHost, _power_db_G1.size() * sizeof(IntegratedPowerType), cudaMemcpyDeviceToHost,
_d2h_stream)); _d2h_stream));
//CUDA_ERROR_CHECK(cudaMemcpyAsync(static_cast<void *>(&_noOfBitSetsInSideChannel_host[0]), CUDA_ERROR_CHECK(cudaMemcpyAsync(static_cast<void *>(&_noOfBitSetsInSideChannel_host[0]),
// static_cast<void *>(_noOfBitSetsInSideChannel.b_ptr()), static_cast<void *>(_noOfBitSetsInSideChannel.b_ptr()),
// 1 * sizeof(size_t),cudaMemcpyDeviceToHost, _d2h_stream)); 1 * sizeof(size_t),cudaMemcpyDeviceToHost, _d2h_stream));
BOOST_LOG_TRIVIAL(debug) << "Copy Data back to device"; BOOST_LOG_TRIVIAL(debug) << "Copy Data back to device";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment