Skip to content
Snippets Groups Projects
Commit a872e811 authored by Ewan Barr's avatar Ewan Barr
Browse files

added extra debugging

parent d584672b
No related branches found
No related tags found
No related merge requests found
...@@ -49,10 +49,14 @@ FftSpectrometer<HandlerType>::FftSpectrometer( ...@@ -49,10 +49,14 @@ FftSpectrometer<HandlerType>::FftSpectrometer(
cufftSetStream(_fft_plan, _proc_stream); cufftSetStream(_fft_plan, _proc_stream);
BOOST_LOG_TRIVIAL(debug) << "Allocating memory"; BOOST_LOG_TRIVIAL(debug) << "Allocating memory";
_raw_voltage_db.resize(n64bit_words); _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); _unpacked_voltage.resize(nsamps_per_buffer);
BOOST_LOG_TRIVIAL(debug) << "Unpacked voltages size (in samples): " << _unpacked_voltage.size();
_channelised_voltage.resize(_nchans * batch); _channelised_voltage.resize(_nchans * batch);
BOOST_LOG_TRIVIAL(debug) << "Channelised voltages size: " << _channelised_voltage.size();
_power_db.resize(_nchans * batch / _naccumulate); _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(&_h2d_stream));
CUDA_ERROR_CHECK(cudaStreamCreate(&_proc_stream)); CUDA_ERROR_CHECK(cudaStreamCreate(&_proc_stream));
CUDA_ERROR_CHECK(cudaStreamCreate(&_d2h_stream)); CUDA_ERROR_CHECK(cudaStreamCreate(&_d2h_stream));
......
...@@ -15,7 +15,7 @@ namespace psrdada_cpp { ...@@ -15,7 +15,7 @@ namespace psrdada_cpp {
SimpleFileWriter(SimpleFileWriter const&) = delete; SimpleFileWriter(SimpleFileWriter const&) = delete;
~SimpleFileWriter(); ~SimpleFileWriter();
void init(RawBytes&); void init(RawBytes&);
void init(RawBytes&, std::size_t); void init(RawBytes&, std::size_t);
bool operator()(RawBytes&); bool operator()(RawBytes&);
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment