diff --git a/psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu b/psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu index db69b92b64ea523f4cb731af4701fa9f1dd7881c..735acd857b07e2eb953c6b29be1073bc711f46c5 100644 --- a/psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu +++ b/psrdada_cpp/effelsberg/edd/detail/GatedSpectrometer.cu @@ -112,7 +112,7 @@ GatedSpectrometer<HandlerType, InputType, OutputType>::GatedSpectrometer( _nBlocks = 1; } else - { // multiple blocks are integrated intoone output + { // multiple blocks are integrated into one output size_t N = nsamps_per_output_spectra / nsamps_per_pol; // All data in multiple blocks has to be used assert(N * nsamps_per_pol == nsamps_per_output_spectra); @@ -419,16 +419,6 @@ void GatedSpectrometer<HandlerType, InputType, OutputType>::process(DualPolariza _nchans, _naccumulate / _nBlocks ); } - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G0.I.a().begin(), outputDataStream->G0.I.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G0.Q.a().begin(), outputDataStream->G0.Q.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G0.U.a().begin(), outputDataStream->G0.U.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G0.V.a().begin(), outputDataStream->G0.V.a().end(), _call_count); - - - // thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G1.I.a().begin(), outputDataStream->G1.I.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G1.Q.a().begin(), outputDataStream->G1.Q.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G1.U.a().begin(), outputDataStream->G1.U.a().end(), _call_count); - //thrust::fill(thrust::cuda::par.on(_proc_stream),outputDataStream->G1.V.a().begin(), outputDataStream->G1.V.a().end(), _call_count); // cudaDeviceSynchronize(); } diff --git a/psrdada_cpp/effelsberg/edd/src/GatedSpectrometer.cu b/psrdada_cpp/effelsberg/edd/src/GatedSpectrometer.cu index 4ca8fde5e0f9b2bceac33f0e899ce17d13899dac..cfac0913f9b54a9e06c46d73a7c875416d0407db 100644 --- a/psrdada_cpp/effelsberg/edd/src/GatedSpectrometer.cu +++ b/psrdada_cpp/effelsberg/edd/src/GatedSpectrometer.cu @@ -353,7 +353,7 @@ void GatedPowerSpectrumOutput::data2Host(cudaStream_t &_d2h_stream) // size of individual spectrum + meta size_t memslicesize = (_nchans * sizeof(IntegratedPowerType)); // number of spectra per output - size_t memOffset = 2 * i * (memslicesize + + sizeof(size_t)); + size_t memOffset = 2 * i * (memslicesize + sizeof(size_t)); // copy 2x channel data CUDA_ERROR_CHECK(