Commit a872e811 authored by Ewan Barr's avatar Ewan Barr
Browse files

added extra debugging

parent d584672b
......@@ -49,10 +49,14 @@ FftSpectrometer<HandlerType>::FftSpectrometer(
cufftSetStream(_fft_plan, _proc_stream);
BOOST_LOG_TRIVIAL(debug) << "Allocating memory";
_raw_voltage_db.resize(n64bit_words);
BOOST_LOG_TRIVIAL(debug) << "Input voltages size (in 64-bit words): " << _raw_voltage_db.size();
_unpacked_voltage.resize(nsamps_per_buffer);
BOOST_LOG_TRIVIAL(debug) << "Unpacked voltages size (in samples): " << _unpacked_voltage.size();
_channelised_voltage.resize(_nchans * batch);
BOOST_LOG_TRIVIAL(debug) << "Channelised voltages size: " << _channelised_voltage.size();
_power_db.resize(_nchans * batch / _naccumulate);
_host_power_db.resize(_nchans * batch / _naccumulate);
BOOST_LOG_TRIVIAL(debug) << "Powers size: " << _power_db.size();
_host_power_db.resize(_power_db.size());
CUDA_ERROR_CHECK(cudaStreamCreate(&_h2d_stream));
CUDA_ERROR_CHECK(cudaStreamCreate(&_proc_stream));
CUDA_ERROR_CHECK(cudaStreamCreate(&_d2h_stream));
......
......@@ -15,7 +15,7 @@ namespace psrdada_cpp {
SimpleFileWriter(SimpleFileWriter const&) = delete;
~SimpleFileWriter();
void init(RawBytes&);
void init(RawBytes&, std::size_t);
void init(RawBytes&, std::size_t);
bool operator()(RawBytes&);
private:
......
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