Per-thread configuration options. More...

#include <SingleThread.h>

Inheritance diagram for dsp::SingleThread::Config:
Reference::Able Reference::HeapTracked dsp::LoadToFil::Config dsp::LoadToFITS::Config dsp::LoadToFold::Config dsp::LoadToQuantize::Config

Public Member Functions

 Config ()
 Default constructor.
 
virtual void add_options (CommandLine::Menu &)
 Add command line options.
 
Sourceopen (int argc, char **argv)
 Create new Input based on command line options. More...
 
void set_times_minimum_ndat (unsigned)
 
unsigned get_times_minimum_ndat () const
 
void set_maximum_RAM (uint64_t)
 
uint64_t get_maximum_RAM () const
 
void set_minimum_RAM (uint64_t)
 
uint64_t get_minimum_RAM () const
 
virtual void prepare (Source *)
 Prepare the input according to the configuration.
 
void set_cuda_device (std::string)
 set the cuda devices to be used
 
unsigned get_cuda_ndevice () const
 
void set_nthread (unsigned)
 set the number of CPU threads to be used
 
unsigned get_total_nthread () const
 get the total number of threads
 
void set_affinity (std::string)
 set the cpus on which each thread will run
 
void set_fft_library (std::string)
 set the FFT library
 
unsigned get_nbuffers () const
 get the number of buffers required to process the data
 
virtual void set_quiet ()
 Operate in quiet mode.
 
virtual void set_verbose ()
 Operate in verbose mode.
 
virtual void set_very_verbose ()
 Operate in very verbose mode.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Public Attributes

std::string application_name
 The name of the application.
 
Functor< void(Source *) > source_prepare
 external function used to prepare the input each time it is opened
 
bool force_contiguity
 
bool command_line_header
 
MJD seek_epoch
 Seek such that the first time sample output is at the specified (topocentric) MJD. More...
 
double seek_seconds
 
double total_seconds
 
bool list_attributes
 List all editor-accessible attributes of the observation.
 
TextEditor< Observationeditor
 The editor used to set Observation attributes via the command line.
 
bool report_vitals
 report vital statistics
 
bool report_done
 report the percentage finished
 
bool run_repeatedly
 run repeatedly on the same input
 
bool input_buffering
 use input-buffering to compensate for operation edge effects
 
bool weighted_time_series
 use weighted time series to flag bad data
 
std::vector< std::string > dump_before
 dump points
 
std::vector< std::string > mask_before
 mask points
 

Protected Attributes

bool can_cuda
 application can make use of CUDA
 
std::vector< unsigned > cuda_device
 CUDA devices on which computations will take place.
 
bool can_thread
 application can make use of multiple cores
 
std::vector< unsigned > affinity
 CPUs on which threads will run.
 
unsigned nthread
 number of CPU threads
 
unsigned buffers
 number of buffers that have been created by new_time_series
 
unsigned repeated
 number of times that the input has been re-opened
 
unsigned times_minimum_ndat
 
uint64_t maximum_RAM
 
uint64_t minimum_RAM
 

Friends

class SingleThread
 These attributes are set only by the SingleThread class.
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Per-thread configuration options.

Member Function Documentation

◆ open()

dsp::Source * dsp::SingleThread::Config::open ( int  argc,
char **  argv 
)

Member Data Documentation

◆ seek_epoch

MJD dsp::SingleThread::Config::seek_epoch

Seek such that the first time sample output is at the specified (topocentric) MJD.

Samples lost to dispersive delay are accounted.


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17