Commit 57a55b04 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Update info output

parent d0ef28a2
...@@ -107,8 +107,8 @@ private: ...@@ -107,8 +107,8 @@ private:
HandlerType &_handler; HandlerType &_handler;
cufftHandle _fft_plan; cufftHandle _fft_plan;
int _nchans; uint64_t _nchans;
int _call_count; uint64_t _call_count;
std::unique_ptr<Unpacker> _unpacker; std::unique_ptr<Unpacker> _unpacker;
std::unique_ptr<DetectorAccumulator<IntegratedPowerType> > _detector; std::unique_ptr<DetectorAccumulator<IntegratedPowerType> > _detector;
......
...@@ -193,7 +193,7 @@ GatedSpectrometer<HandlerType, IntegratedPowerType>::GatedSpectrometer( ...@@ -193,7 +193,7 @@ GatedSpectrometer<HandlerType, IntegratedPowerType>::GatedSpectrometer(
_noOfBitSetsInSideChannel.resize( batch / (_naccumulate / nBlocks)); _noOfBitSetsInSideChannel.resize( batch / (_naccumulate / nBlocks));
thrust::fill(_noOfBitSetsInSideChannel.a().begin(), _noOfBitSetsInSideChannel.a().end(), 0L); thrust::fill(_noOfBitSetsInSideChannel.a().begin(), _noOfBitSetsInSideChannel.a().end(), 0L);
thrust::fill(_noOfBitSetsInSideChannel.b().begin(), _noOfBitSetsInSideChannel.b().end(), 0L); thrust::fill(_noOfBitSetsInSideChannel.b().begin(), _noOfBitSetsInSideChannel.b().end(), 0L);
BOOST_LOG_TRIVIAL(debug) << " Bit set counrer size: " << _noOfBitSetsInSideChannel.size(); BOOST_LOG_TRIVIAL(debug) << " Bit set counter size: " << _noOfBitSetsInSideChannel.size();
// on the host both power are stored in the same data buffer together with // on the host both power are stored in the same data buffer together with
// the number of bit sets // the number of bit sets
...@@ -387,7 +387,6 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b ...@@ -387,7 +387,6 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
static_cast<void *>(_noOfBitSetsInSideChannel.b_ptr() + i ), static_cast<void *>(_noOfBitSetsInSideChannel.b_ptr() + i ),
1 * sizeof(size_t), 1 * sizeof(size_t),
cudaMemcpyDeviceToHost, _d2h_stream)); cudaMemcpyDeviceToHost, _d2h_stream));
BOOST_LOG_TRIVIAL(info) << " TOBR NOF BITS SET: " << _noOfBitSetsInSideChannel.b()[i];
} }
BOOST_LOG_TRIVIAL(debug) << "Copy Data back to host"; BOOST_LOG_TRIVIAL(debug) << "Copy Data back to host";
...@@ -397,7 +396,7 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b ...@@ -397,7 +396,7 @@ bool GatedSpectrometer<HandlerType, IntegratedPowerType>::operator()(RawBytes &b
} }
// calculate off value // 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++) for (size_t i = 0; i < _noOfBitSetsInSideChannel.size(); i++)
{ {
size_t memOffset = 2 * i * (_nchans * sizeof(IntegratedPowerType) + sizeof(size_t)); size_t memOffset = 2 * i * (_nchans * sizeof(IntegratedPowerType) + sizeof(size_t));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment