Commit 7db5188e authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix integration over multiple blocks

parent 01045803
...@@ -372,7 +372,7 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari ...@@ -372,7 +372,7 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari
thrust::raw_pointer_cast(outputDataStream->G0.data.a().data()), thrust::raw_pointer_cast(outputDataStream->G0.data.a().data()),
_nchans, _nchans,
inputDataStream->_channelised_voltage_G0.size(), inputDataStream->_channelised_voltage_G0.size(),
_naccumulate, _naccumulate / _nBlocks,
1, 0., 1, 0); 1, 0., 1, 0);
kernels::detect_and_accumulate<IntegratedPowerType> <<<1024, 1024, 0, _proc_stream>>>( kernels::detect_and_accumulate<IntegratedPowerType> <<<1024, 1024, 0, _proc_stream>>>(
...@@ -380,7 +380,7 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari ...@@ -380,7 +380,7 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari
thrust::raw_pointer_cast(outputDataStream->G1.data.a().data()), thrust::raw_pointer_cast(outputDataStream->G1.data.a().data()),
_nchans, _nchans,
inputDataStream->_channelised_voltage_G1.size(), inputDataStream->_channelised_voltage_G1.size(),
_naccumulate, _naccumulate / _nBlocks,
1, 0., 1, 0); 1, 0., 1, 0);
// count saturated samples // count saturated samples
......
Markdown is supported
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