Commit 258f6127 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Code layout

parent f7e3ccff
......@@ -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();
}
......
......@@ -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(
......
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