Skip to content
Snippets Groups Projects

Fix detect accumulate in Dualpol Spectrometer

Merged Tobias Winchen requested to merge twinchen/psrdada_cpp:spol_fix into devel
4 files
+ 101
20
Compare changes
  • Side-by-side
  • Inline

Files

@@ -371,16 +371,16 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari
@@ -371,16 +371,16 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(SinglePolari
thrust::raw_pointer_cast(inputDataStream->_channelised_voltage_G0.data()),
thrust::raw_pointer_cast(inputDataStream->_channelised_voltage_G0.data()),
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() / _nchans,
inputDataStream->_channelised_voltage_G0.size(),
_naccumulate / _nBlocks,
_naccumulate,
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>>>(
thrust::raw_pointer_cast(inputDataStream->_channelised_voltage_G1.data()),
thrust::raw_pointer_cast(inputDataStream->_channelised_voltage_G1.data()),
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() / _nchans,
inputDataStream->_channelised_voltage_G1.size(),
_naccumulate / _nBlocks,
_naccumulate,
1, 0., 1, 0);
1, 0., 1, 0);
// count saturated samples
// count saturated samples
Loading