Reference
Summary
Members | Descriptions |
---|---|
namespace alps | |
namespace alps::scheduler |
namespace alps
Summary
Members | Descriptions |
---|---|
public std::string ALPS_DECL convert2xml (std::string const & name) | convert a file from XDR format to XML |
public void convert_spectrum (const std::string & inname) | |
public void convert_mc (const std::string & inname) | |
public void convert_xml (const std::string & inname) | |
public void convert_params (const std::string & inname) | |
public void convert_run (const std::string & inname) | |
public void convert_simulation (const std::string & inname) | |
public void convert_scheduler (const std::string & inname) | |
class alps::EigenvectorMeasurements | |
class alps::MeasurementLabels | |
class alps::MeasurementOperators |
Members
public std::string ALPS_DECL
convert2xml
(std::string const & name)
convert a file from XDR format to XML
public void
convert_spectrum
(const std::string & inname)
public void
convert_mc
(const std::string & inname)
public void
convert_xml
(const std::string & inname)
public void
convert_params
(const std::string & inname)
public void
convert_run
(const std::string & inname)
public void
convert_simulation
(const std::string & inname)
public void
convert_scheduler
(const std::string & inname)
class alps::EigenvectorMeasurements
class alps::EigenvectorMeasurements
: public alps::MeasurementLabels
Summary
Members | Descriptions |
---|---|
public std::map< std::string, std::vector< value_type > > average_values | |
public std::map< std::string, std::vector< std::vector< value_type > > > local_values | |
public std::map< std::string, std::vector< std::vector< value_type > > > correlation_values | |
public std::map< std::string, std::vector< std::vector< value_type > > > structurefactor_values | |
public template<>
EigenvectorMeasurements (LatticeModel const &) | |
public void write_xml_one_vector (oxstream & out,const boost::filesystem::path &,std::size_t j) const | |
public XMLTag handle_tag (std::istream & infile,const XMLTag & intag) | |
public virtual void save (hdf5::archive &) const | |
public virtual void load (hdf5::archive &) | |
public inline bool empty () const | |
typedef value_type |
Members
public std::map< std::string, std::vector< value_type > >
average_values
public std::map< std::string, std::vector< std::vector< value_type > > >
local_values
public std::map< std::string, std::vector< std::vector< value_type > > >
correlation_values
public std::map< std::string, std::vector< std::vector< value_type > > >
structurefactor_values
public template<>
EigenvectorMeasurements
(LatticeModel const &)
public void
write_xml_one_vector
(oxstream & out,const boost::filesystem::path &,std::size_t j) const
public XMLTag
handle_tag
(std::istream & infile,const XMLTag & intag)
public virtual void
save
(hdf5::archive &) const
public virtual void
load
(hdf5::archive &)
public inline bool
empty
() const
typedef
value_type
class alps::MeasurementLabels
class alps::MeasurementLabels
: public alps::MeasurementOperators
Summary
Members | Descriptions |
---|---|
public template<>
MeasurementLabels (LatticeModel const &,int) | |
protected std::vector< std::string > distlabel_ | |
protected std::vector< std::string > momentumlabel_ | |
protected std::vector< std::string > bondlabel_ | |
protected std::vector< std::string > sitelabel_ | |
protected mutable std::map< std::string, bool > bond_operator_ |
Members
public template<>
MeasurementLabels
(LatticeModel const &,int)
protected std::vector< std::string >
distlabel_
protected std::vector< std::string >
momentumlabel_
protected std::vector< std::string >
bondlabel_
protected std::vector< std::string >
sitelabel_
protected mutable std::map< std::string, bool >
bond_operator_
class alps::MeasurementOperators
Summary
Members | Descriptions |
---|---|
public MeasurementOperators (Parameters const & p) | |
public inline bool calc_averages () const | |
protected std::map< std::string, std::string > average_expressions | |
protected std::map< std::string, std::string > local_expressions | |
protected std::map< std::string, std::pair< std::string, std::string > > correlation_expressions | |
protected std::map< std::string, std::pair< std::string, std::string > > structurefactor_expressions | |
protected inline bool calc_labels () const |
Members
public
MeasurementOperators
(Parameters const & p)
public inline bool
calc_averages
() const
protected std::map< std::string, std::string >
average_expressions
protected std::map< std::string, std::string >
local_expressions
protected std::map< std::string, std::pair< std::string, std::string > >
correlation_expressions
protected std::map< std::string, std::pair< std::string, std::string > >
structurefactor_expressions
protected inline bool
calc_labels
() const
namespace alps::scheduler
Summary
Members
enum
MCDumpType
Values | Descriptions |
---|---|
MCDump_scheduler | |
MCDump_task | |
MCDump_run | |
MCDump_measurements | |
MCDump_run_master | |
MCDump_run_slave | |
MCDump_snapshot | |
MCDump_worker_version |
enum
MCMP_Tags
Values | Descriptions |
---|---|
MCMP_stop_slave_scheduler | |
MCMP_make_slave_task | |
MCMP_make_task | |
MCMP_dump_name | |
MCMP_delete_task | |
MCMP_get_task_finished | |
MCMP_start_task | |
MCMP_halt_task | |
MCMP_add_processes | |
MCMP_add_process | |
MCMP_delete_processes | |
MCMP_delete_process | |
MCMP_checkpoint | |
MCMP_get_work | |
MCMP_nodes | |
MCMP_ready | |
MCMP_make_run | |
MCMP_startRun | |
MCMP_haltRun | |
MCMP_delete_run | |
MCMP_get_run_info | |
MCMP_get_measurements | |
MCMP_get_observable | |
MCMP_save_run_to_file | |
MCMP_load_run_from_file | |
MCMP_get_run_work | |
MCMP_set_parameters | |
MCMP_get_measurements_and_infos | |
MCMP_get_summary | |
MCMP_void | |
MCMP_run_dump | |
MCMP_run_info | |
MCMP_measurements | |
MCMP_task_finished | |
MCMP_observable | |
MCMP_measurements_and_infos | |
MCMP_work | |
MCMP_run_work | |
MCMP_summary | |
MCMP_do_steps |
public inline alps::oxstream &
operator<<
(alps::oxstream & o,const
alps::scheduler::Info
& i)
public inline alps::oxstream &
operator<<
(alps::oxstream & o,const
alps::scheduler::TaskInfo
& i)
public void
print_copyright
(std::ostream & out)
public void
init
(const
Factory
& p)
public int
start
(int argc,char ** argv,const
Factory
& p)
public ALPS_DECL
SingleScheduler
*
start_single
(const
Factory
& p,int argc,char ** argv)
public ALPS_DECL void
stop_single
(bool exit_)
public inline boost::filesystem::path
optional_complete
(boost::filesystem::path const & p,boost::filesystem::path const & dir)
class alps::scheduler::AbstractTask
Summary
Members | Descriptions |
---|---|
public AbstractTask () | |
public AbstractTask (const ProcessList &) | |
public virtual ~AbstractTask () | |
public void checkpoint (const boost::filesystem::path &,bool) const | |
public uint32_t cpus () const | |
public inline virtual bool local () | |
public virtual void add_processes (const ProcessList &) | |
public void add_process (const Process &) | |
public void start () | |
public void run () | |
public void halt () | |
public ResultType get_summary () const | |
public inline virtual double work () const | |
public bool finished (double &,double &) const | |
public virtual bool handle_message (const Process & master,int tag) | |
public inline int finished_notime () const | |
protected AbstractWorker * theWorker | |
protected ProcessList where | |
protected bool use_error_limit |
Members
public
AbstractTask
()
public
AbstractTask
(const ProcessList &)
public virtual
~AbstractTask
()
public void
checkpoint
(const boost::filesystem::path &,bool) const
public uint32_t
cpus
() const
public inline virtual bool
local
()
public virtual void
add_processes
(const ProcessList &)
public void
add_process
(const Process &)
public void
start
()
public void
run
()
public void
halt
()
public
ResultType
get_summary
() const
public inline virtual double
work
() const
public bool
finished
(double &,double &) const
public virtual bool
handle_message
(const Process & master,int tag)
public inline int
finished_notime
() const
protected
AbstractWorker
*
theWorker
protected ProcessList
where
protected bool
use_error_limit
class alps::scheduler::AbstractWorker
Summary
Members | Descriptions |
---|---|
public inline AbstractWorker () | |
public inline virtual ~AbstractWorker () | |
public inline virtual void save (hdf5::archive &) const | |
public inline virtual void load (hdf5::archive &) | |
public void save_to_file (const boost::filesystem::path &,const boost::filesystem::path &) const | |
public void load_from_file (const boost::filesystem::path &,const boost::filesystem::path &) | |
public void set_parameters (const Parameters & parms) | |
public TaskInfo get_info () const | |
public double work_done () const | |
public void start_worker () | |
public void halt_worker () | |
public bool handle_message (const Process & runmaster,int32_t tag) | |
public ResultType get_summary () const |
Members
public inline
AbstractWorker
()
public inline virtual
~AbstractWorker
()
public inline virtual void
save
(hdf5::archive &) const
public inline virtual void
load
(hdf5::archive &)
public void
save_to_file
(const boost::filesystem::path &,const boost::filesystem::path &) const
public void
load_from_file
(const boost::filesystem::path &,const boost::filesystem::path &)
public void
set_parameters
(const Parameters & parms)
public
TaskInfo
get_info
() const
public double
work_done
() const
public void
start_worker
()
public void
halt_worker
()
public bool
handle_message
(const Process & runmaster,int32_t tag)
public
ResultType
get_summary
() const
class alps::scheduler::BasicFactory
class alps::scheduler::BasicFactory
: public alps::scheduler::SimpleFactory< TASK >
Summary
Members | Descriptions |
---|---|
public inline BasicFactory () | |
public inline virtual Worker * make_worker (const ProcessList & where,const Parameters & parms,int node) const | |
public inline virtual void print_copyright (std::ostream & out) const |
Members
public inline
BasicFactory
()
public inline virtual
Worker
*
make_worker
(const ProcessList & where,const Parameters & parms,int node) const
public inline virtual void
print_copyright
(std::ostream & out) const
class alps::scheduler::DiagTask
class alps::scheduler::DiagTask
: public alps::scheduler::Task
: public graph_helper< typename graph_helper<>::graph_type >
: public model_helper<>
: public alps::MeasurementOperators
Summary
Members | Descriptions |
---|---|
public DiagTask (const ProcessList & where,const boost::filesystem::path & p,bool delay_construct) | |
public inline virtual void dostep () | |
public virtual void save (hdf5::archive &) const | |
public virtual void load (hdf5::archive &) | |
protected std::vector< mag_vector_type > eigenvalues_ | |
protected std::vector< EigenvectorMeasurements < value_type > > measurements_ | |
protected std::vector< std::vector< std::pair< std::string, std::string > > > quantumnumbervalues_ | |
protected void write_xml_body (oxstream &,const boost::filesystem::path &,bool) const | |
protected virtual void handle_tag (std::istream & infile,const XMLTag & tag) | |
protected inline bool calc_vectors () const | |
protected inline bool print_vectors () const | |
typedef value_type | |
typedef magnitude_type | |
typedef vector_type | |
typedef mag_vector_type | |
typedef half_integer_type | |
typedef operator_matrix_type |
Members
public
DiagTask
(const ProcessList & where,const boost::filesystem::path & p,bool delay_construct)
public inline virtual void
dostep
()
public virtual void
save
(hdf5::archive &) const
public virtual void
load
(hdf5::archive &)
protected std::vector< mag_vector_type >
eigenvalues_
protected std::vector<
EigenvectorMeasurements
< value_type > >
measurements_
protected std::vector< std::vector< std::pair< std::string, std::string > > >
quantumnumbervalues_
protected void
write_xml_body
(oxstream &,const boost::filesystem::path &,bool) const
protected virtual void
handle_tag
(std::istream & infile,const XMLTag & tag)
protected inline bool
calc_vectors
() const
protected inline bool
print_vectors
() const
typedef
value_type
typedef
magnitude_type
typedef
vector_type
typedef
mag_vector_type
typedef
half_integer_type
typedef
operator_matrix_type
class alps::scheduler::DummyMCRun
class alps::scheduler::DummyMCRun
: public alps::scheduler::MCRun
Summary
Members | Descriptions |
---|---|
public DummyMCRun (const ProcessList & w,const alps::Parameters & p,int n) | |
public DummyMCRun () | |
public virtual void dostep () | |
public virtual double work_done () const | |
public virtual ResultType get_summary () const |
Members
public
DummyMCRun
(const ProcessList & w,const alps::Parameters & p,int n)
public
DummyMCRun
()
public virtual void
dostep
()
public virtual double
work_done
() const
public virtual
ResultType
get_summary
() const
class alps::scheduler::Factory
Summary
Members | Descriptions |
---|---|
public inline Factory () | |
public inline virtual ~Factory () | |
public virtual Task * make_task (const ProcessList &,const boost::filesystem::path &) const | |
public virtual Task * make_task (const ProcessList &,const boost::filesystem::path &,const Parameters &) const | |
public virtual Task * make_task (const ProcessList &,const Parameters &) const | |
public virtual Worker * make_worker (const ProcessList &,const Parameters &,int) const | |
public void print_copyright (std::ostream &) const |
Members
public inline
Factory
()
public inline virtual
~Factory
()
public virtual
Task
*
make_task
(const ProcessList &,const boost::filesystem::path &) const
public virtual
Task
*
make_task
(const ProcessList &,const boost::filesystem::path &,const Parameters &) const
public virtual
Task
*
make_task
(const ProcessList &,const Parameters &) const
public virtual
Worker
*
make_worker
(const ProcessList &,const Parameters &,int) const
public void
print_copyright
(std::ostream &) const
class alps::scheduler::Info
Summary
Members | Descriptions |
---|---|
public Info () | |
public void start (const std::string &) | |
public void halt () | |
public void checkpoint () | |
public void save (hdf5::archive &) const | |
public void load (hdf5::archive &) | |
public void save (ODump &) const | |
public ALPS_DUMMY_VOID write_xml (alps::oxstream &) const | |
public void load (IDump & dump,int version) | |
public const boost::posix_time::ptime & start_time () const | |
public const boost::posix_time::ptime & stop_time () const | |
public const std::string & phase () const | |
public const std::string & host () const |
Members
public
Info
()
public void
start
(const std::string &)
public void
halt
()
public void
checkpoint
()
public void
save
(hdf5::archive &) const
public void
load
(hdf5::archive &)
public void
save
(ODump &) const
public ALPS_DUMMY_VOID
write_xml
(alps::oxstream &) const
public void
load
(IDump & dump,int version)
public const boost::posix_time::ptime &
start_time
() const
public const boost::posix_time::ptime &
stop_time
() const
public const std::string &
phase
() const
public const std::string &
host
() const
class alps::scheduler::LatticeMCRun
class alps::scheduler::LatticeMCRun
: public alps::scheduler::MCRun
: public graph_helper< graph_helper<>::graph_type >
Summary
Members | Descriptions |
---|---|
public inline LatticeMCRun (const ProcessList & w,const alps::Parameters & p,int n) |
Members
public inline
LatticeMCRun
(const ProcessList & w,const alps::Parameters & p,int n)
class alps::scheduler::LatticeModelMCRun
class alps::scheduler::LatticeModelMCRun
: public alps::scheduler::LatticeMCRun< graph_helper<>::graph_type >
: public model_helper< short >
Summary
Members | Descriptions |
---|---|
public inline LatticeModelMCRun (const ProcessList & w,const alps::Parameters & p,int n,bool issymbolic) | |
public inline bool has_sign_problem () const |
Members
public inline
LatticeModelMCRun
(const ProcessList & w,const alps::Parameters & p,int n,bool issymbolic)
public inline bool
has_sign_problem
() const
class alps::scheduler::MasterScheduler
class alps::scheduler::MasterScheduler
: public alps::scheduler::Scheduler
Summary
Members | Descriptions |
---|---|
public MasterScheduler (const Options &,const Factory &) | |
public MasterScheduler (const NoJobfileOptions &,const Factory &) | |
public ~MasterScheduler () | |
public virtual void set_new_jobfile (const boost::filesystem::path & jobilename) | Registers a new job file and updates everything that is related to the job files - namely the task files are parsed and the tasks are created accordingly. This function is used for the fitting and allows to start another simulation based on newly created files. Deleting and re-creating the schedulers yields to problems with syncronisation and integrity of the message space. |
protected std::vector< AbstractTask * > tasks | |
protected std::vector< int > taskstatus | |
protected void remake_task (ProcessList &,const int) | |
protected void finish_task (int) | |
protected virtual void checkpoint () | |
enum TaskStatusFlag |
Members
public
MasterScheduler
(const
Options
&,const
Factory
&)
public
MasterScheduler
(const
NoJobfileOptions
&,const
Factory
&)
public
~MasterScheduler
()
public virtual void
set_new_jobfile
(const boost::filesystem::path & jobilename)
Registers a new job file and updates everything that is related to the job files - namely the task files are parsed and the tasks are created accordingly. This function is used for the fitting and allows to start another simulation based on newly created files. Deleting and re-creating the schedulers yields to problems with syncronisation and integrity of the message space.
@params jobfilename The name of the new job file
protected std::vector<
AbstractTask
* >
tasks
protected std::vector< int >
taskstatus
protected void
remake_task
(ProcessList &,const int)
protected void
finish_task
(int)
protected virtual void
checkpoint
()
enum
TaskStatusFlag
Values | Descriptions |
---|---|
TaskNotExisting | |
TaskNotStarted | |
TaskRunning | |
TaskHalted | |
TaskFromDump | |
TaskFinished |
class alps::scheduler::MCRun
class alps::scheduler::MCRun
: public alps::scheduler::Worker
Summary
Members | Descriptions |
---|---|
public MCRun (const ProcessList &,const alps::Parameters &,int) | |
public virtual void save_worker (ODump &) const | |
public virtual void load_worker (IDump &) | |
public virtual void save (hdf5::archive &) const | |
public virtual void load (hdf5::archive &) | |
public virtual void save (ODump &) const | |
public virtual void load (IDump &) | |
public virtual void write_xml (const boost::filesystem::path & name) const | |
public inline const ObservableSet & get_measurements () const | |
public ObservableSet get_compacted_measurements () const | |
public ObservableSet get_and_remove_observable (const std::string & obsname,bool compact) | |
public virtual std::string work_phase () | |
public virtual void run () | |
public virtual bool is_thermalized () const | |
public virtual bool handle_message (const Process & runmaster,int32_t tag) | |
protected ObservableSet measurements |
Members
public
MCRun
(const ProcessList &,const alps::Parameters &,int)
public virtual void
save_worker
(ODump &) const
public virtual void
load_worker
(IDump &)
public virtual void
save
(hdf5::archive &) const
public virtual void
load
(hdf5::archive &)
public virtual void
save
(ODump &) const
public virtual void
load
(IDump &)
public virtual void
write_xml
(const boost::filesystem::path & name) const
public inline const ObservableSet &
get_measurements
() const
public ObservableSet
get_compacted_measurements
() const
public ObservableSet
get_and_remove_observable
(const std::string & obsname,bool compact)
public virtual std::string
work_phase
()
public virtual void
run
()
public virtual bool
is_thermalized
() const
public virtual bool
handle_message
(const Process & runmaster,int32_t tag)
protected ObservableSet
measurements
class alps::scheduler::MCSimulation
class alps::scheduler::MCSimulation
: public alps::scheduler::WorkerTask
Summary
Members | Descriptions |
---|---|
public inline MCSimulation (const ProcessList & w,const boost::filesystem::path & p) | |
public inline MCSimulation (const ProcessList & w,const Parameters & p) | |
public ObservableSet get_measurements (bool compact) const | |
public ObservableSet get_and_remove_observable (const std::string & obsname,bool compact) | |
public MCSimulation & operator<< (const Observable & obs) | |
public void addObservable (const Observable & obs) | |
public virtual ResultType get_summary () const | Returns the summary, the name of the Observable is specified in the job file |
public virtual ResultType get_summary (const std::string) const | Returns the summary of the MCSimulation for the Observable given by the name |
Members
public inline
MCSimulation
(const ProcessList & w,const boost::filesystem::path & p)
public inline
MCSimulation
(const ProcessList & w,const Parameters & p)
public ObservableSet
get_measurements
(bool compact) const
public ObservableSet
get_and_remove_observable
(const std::string & obsname,bool compact)
public
MCSimulation
&
operator<<
(const Observable & obs)
public void
addObservable
(const Observable & obs)
public virtual
ResultType
get_summary
() const
Returns the summary, the name of the Observable is specified in the job file
public virtual
ResultType
get_summary
(const std::string) const
Returns the summary of the MCSimulation for the Observable given by the name
@params name the name of the observable
class alps::scheduler::MPPScheduler
class alps::scheduler::MPPScheduler
: public alps::scheduler::MasterScheduler
Summary
Members | Descriptions |
---|---|
public MPPScheduler (const Options &,const Factory &) | |
public MPPScheduler (const NoJobfileOptions &,const Factory &) | |
public virtual int run () |
Members
public
MPPScheduler
(const
Options
&,const
Factory
&)
public
MPPScheduler
(const
NoJobfileOptions
&,const
Factory
&)
public virtual int
run
()
class alps::scheduler::NoJobfileOptions
Summary
Members | Descriptions |
---|---|
public std::string programname | |
public double min_check_time | |
public double max_check_time | |
public double checkpoint_time | |
public int min_cpus | |
public int max_cpus | |
public double time_limit | |
public bool use_mpi | |
public bool valid | |
public bool write_xml | |
public NoJobfileOptions (int argc,char ** argv) | |
public NoJobfileOptions () |
Members
public std::string
programname
public double
min_check_time
public double
max_check_time
public double
checkpoint_time
public int
min_cpus
public int
max_cpus
public double
time_limit
public bool
use_mpi
public bool
valid
public bool
write_xml
public
NoJobfileOptions
(int argc,char ** argv)
public
NoJobfileOptions
()
class alps::scheduler::Options
class alps::scheduler::Options
: public alps::scheduler::NoJobfileOptions
Summary
Members | Descriptions |
---|---|
public boost::filesystem::path jobfilename | |
public Options (int argc,char ** argv) | |
public Options () |
Members
public boost::filesystem::path
jobfilename
public
Options
(int argc,char ** argv)
public
Options
()
class alps::scheduler::RemoteTask
class alps::scheduler::RemoteTask
: public alps::scheduler::AbstractTask
Summary
Members | Descriptions |
---|---|
public RemoteTask (const ProcessList &,const boost::filesystem::path &) | |
public ~RemoteTask () | |
public virtual void checkpoint (const boost::filesystem::path &,bool) const | |
public virtual void add_processes (const ProcessList &) | |
public virtual void add_process (const Process &) | |
public virtual uint32_t cpus () const | |
public inline virtual bool local () | |
public virtual void start () | |
public virtual bool finished (double &,double &) const | |
public virtual double work () const | |
public virtual void run () | |
public virtual void halt () | |
public virtual bool handle_message (const Process & master,int tag) | |
public virtual ResultType get_summary () const | Sends the summary for this remote task to the master |
Members
public
RemoteTask
(const ProcessList &,const boost::filesystem::path &)
public
~RemoteTask
()
public virtual void
checkpoint
(const boost::filesystem::path &,bool) const
public virtual void
add_processes
(const ProcessList &)
public virtual void
add_process
(const Process &)
public virtual uint32_t
cpus
() const
public inline virtual bool
local
()
public virtual void
start
()
public virtual bool
finished
(double &,double &) const
public virtual double
work
() const
public virtual void
run
()
public virtual void
halt
()
public virtual bool
handle_message
(const Process & master,int tag)
public virtual
ResultType
get_summary
() const
Sends the summary for this remote task to the master
class alps::scheduler::RemoteWorker
class alps::scheduler::RemoteWorker
: public alps::scheduler::AbstractWorker
Summary
Members | Descriptions |
---|---|
public RemoteWorker (const ProcessList &,const Parameters &,int32_t) | |
public virtual ~RemoteWorker () | |
public virtual void set_parameters (const Parameters & parms) | |
public virtual void save_to_file (const boost::filesystem::path &,const boost::filesystem::path &) const | |
public virtual void load_from_file (const boost::filesystem::path &,const boost::filesystem::path &) | |
public virtual void start_worker () | |
public virtual void halt_worker () | |
public virtual TaskInfo get_info () const | |
public virtual double work_done () const | |
public virtual ResultType get_summary () const | |
public inline const Process & process () const | |
public virtual bool handle_message (const Process & runmaster,int32_t tag) |
Members
public
RemoteWorker
(const ProcessList &,const Parameters &,int32_t)
public virtual
~RemoteWorker
()
public virtual void
set_parameters
(const Parameters & parms)
public virtual void
save_to_file
(const boost::filesystem::path &,const boost::filesystem::path &) const
public virtual void
load_from_file
(const boost::filesystem::path &,const boost::filesystem::path &)
public virtual void
start_worker
()
public virtual void
halt_worker
()
public virtual
TaskInfo
get_info
() const
public virtual double
work_done
() const
public virtual
ResultType
get_summary
() const
public inline const Process &
process
() const
public virtual bool
handle_message
(const Process & runmaster,int32_t tag)
class alps::scheduler::Scheduler
class alps::scheduler::Scheduler
: public boost::noncopyable
Summary
Members | Descriptions |
---|---|
public const Factory & proc | |
public SignalHandler sig | |
public const std::string programname | |
public Scheduler (const NoJobfileOptions &,const Factory &) | |
public virtual ~Scheduler () | |
public inline virtual void set_new_jobfile (const boost::filesystem::path &) | |
public virtual int run () | |
public inline void makeSummary () | |
public inline ResultsType getSummary () const | |
public AbstractTask * make_task (const ProcessList &,const boost::filesystem::path &) | |
public AbstractTask * make_task (const boost::filesystem::path &) | |
public AbstractWorker * make_worker (const ProcessList &,const Parameters &,int) | |
public AbstractWorker * make_worker (const Parameters &) | |
public virtual void set_time_limit (double limit) | |
public virtual void checkpoint () | |
public int check_signals () | |
protected AbstractTask * theTask | |
protected boost::filesystem::path defaultpath | |
protected bool use_error_limit | |
protected ResultsType sim_results | |
protected bool make_summary | |
protected ProcessList processes | |
protected double min_check_time | |
protected double max_check_time | |
protected double checkpoint_time | |
protected std::size_t min_cpus | |
protected std::size_t max_cpus | |
protected double time_limit | |
protected bool write_xml |
Members
public const
Factory
&
proc
public
SignalHandler
sig
public const std::string
programname
public
Scheduler
(const
NoJobfileOptions
&,const
Factory
&)
public virtual
~Scheduler
()
public inline virtual void
set_new_jobfile
(const boost::filesystem::path &)
public virtual int
run
()
public inline void
makeSummary
()
public inline ResultsType
getSummary
() const
public
AbstractTask
*
make_task
(const ProcessList &,const boost::filesystem::path &)
public
AbstractTask
*
make_task
(const boost::filesystem::path &)
public
AbstractWorker
*
make_worker
(const ProcessList &,const Parameters &,int)
public
AbstractWorker
*
make_worker
(const Parameters &)
public virtual void
set_time_limit
(double limit)
public virtual void
checkpoint
()
public int
check_signals
()
protected
AbstractTask
*
theTask
protected boost::filesystem::path
defaultpath
protected bool
use_error_limit
protected ResultsType
sim_results
protected bool
make_summary
protected ProcessList
processes
protected double
min_check_time
protected double
max_check_time
protected double
checkpoint_time
protected std::size_t
min_cpus
protected std::size_t
max_cpus
protected double
time_limit
protected bool
write_xml
class alps::scheduler::SerialScheduler
class alps::scheduler::SerialScheduler
: public alps::scheduler::MasterScheduler
Summary
Members | Descriptions |
---|---|
public SerialScheduler (const Options &,const Factory &) | |
public SerialScheduler (const NoJobfileOptions &,const Factory &) | |
public virtual int run () |
Members
public
SerialScheduler
(const
Options
&,const
Factory
&)
public
SerialScheduler
(const
NoJobfileOptions
&,const
Factory
&)
public virtual int
run
()
class alps::scheduler::SignalHandler
implements a signal handler. signals are intercepted and can be checked for.
Summary
Members | Descriptions |
---|---|
public SignalHandler () | a default constructor |
public SignalInfo operator() () | ask for signals. If more than one signal has been received the signal with the highest priority will be returned. Priorities are: USER1 > USER2 > STOP > TERMINATE. |
enum SignalInfo | symbolic names for signals. SIGINT, SIGQUIT and SIGTERM are mapped to TERMINATE SIGTSTP is mapped to STOP SIGUSR1 is mapped to USER1 SIGUSR2 is mapped to USER2 |
Members
public
SignalHandler
()
a default constructor
public
SignalInfo
operator()
()
ask for signals. If more than one signal has been received the signal with the highest priority will be returned. Priorities are: USER1 > USER2 > STOP > TERMINATE.
enum
SignalInfo
Values | Descriptions |
---|---|
NOSIGNAL | |
USER1 | |
USER2 | |
STOP | |
TERMINATE |
symbolic names for signals. SIGINT, SIGQUIT and SIGTERM are mapped to TERMINATE SIGTSTP is mapped to STOP SIGUSR1 is mapped to USER1 SIGUSR2 is mapped to USER2
class alps::scheduler::SimpleFactory
class alps::scheduler::SimpleFactory
: public alps::scheduler::Factory
Summary
Members | Descriptions |
---|---|
public inline SimpleFactory () | |
public inline virtual Task * make_task (const ProcessList & w,const boost::filesystem::path & fn) const | |
public inline virtual Task * make_task (const ProcessList & w,const Parameters & p) const | |
public inline virtual void print_copyright (std::ostream & out) const |
Members
public inline
SimpleFactory
()
public inline virtual
Task
*
make_task
(const ProcessList & w,const boost::filesystem::path & fn) const
public inline virtual
Task
*
make_task
(const ProcessList & w,const Parameters & p) const
public inline virtual void
print_copyright
(std::ostream & out) const
class alps::scheduler::SimpleMCFactory
class alps::scheduler::SimpleMCFactory
: public alps::scheduler::BasicFactory< MCSimulation, WORKER >
Summary
Members | Descriptions |
---|---|
public inline SimpleMCFactory () |
Members
public inline
SimpleMCFactory
()
class alps::scheduler::SingleScheduler
class alps::scheduler::SingleScheduler
: public alps::scheduler::Scheduler
Summary
Members | Descriptions |
---|---|
public SingleScheduler (const NoJobfileOptions &,const Factory &) | |
public ~SingleScheduler () | |
public virtual int run () | |
public void create_task (Parameters const & p) | |
public void destroy_task () | |
public inline virtual void checkpoint () | |
public inline AbstractTask * get_task () |
Members
public
SingleScheduler
(const
NoJobfileOptions
&,const
Factory
&)
public
~SingleScheduler
()
public virtual int
run
()
public void
create_task
(Parameters const & p)
public void
destroy_task
()
public inline virtual void
checkpoint
()
public inline
AbstractTask
*
get_task
()
class alps::scheduler::SlaveTask
class alps::scheduler::SlaveTask
: public alps::scheduler::AbstractTask
Summary
Members | Descriptions |
---|---|
public SlaveTask (const Process &) | |
public virtual void run () | |
public virtual void checkpoint (const boost::filesystem::path & fn,bool) const | |
public virtual void add_process (const Process & p) | |
public virtual void start () | |
public virtual double work () const | |
public virtual bool finished (double & x,double &) const | |
public virtual void halt () | |
public virtual uint32_t cpus () const | |
public virtual ResultType get_summary () const |
Members
public
SlaveTask
(const Process &)
public virtual void
run
()
public virtual void
checkpoint
(const boost::filesystem::path & fn,bool) const
public virtual void
add_process
(const Process & p)
public virtual void
start
()
public virtual double
work
() const
public virtual bool
finished
(double & x,double &) const
public virtual void
halt
()
public virtual uint32_t
cpus
() const
public virtual
ResultType
get_summary
() const
class alps::scheduler::Task
class alps::scheduler::Task
: public alps::scheduler::AbstractTask
Summary
Members | Descriptions |
---|---|
public Task (const ProcessList &,const boost::filesystem::path &) | |
public Task (const ProcessList &,const Parameters &) | |
public ~Task () | |
public virtual void construct () | |
public virtual void checkpoint (const boost::filesystem::path &,bool) const | |
public void checkpoint_hdf5 (const boost::filesystem::path &) const | |
public void checkpoint_xml (const boost::filesystem::path &,bool) const | |
public virtual void add_process (const Process &) | |
public inline virtual uint32_t cpus () const | |
public inline virtual bool local () | |
public const alps::Parameters & get_parameters () const | |
public virtual void start () | |
public virtual void run () | |
public void dostep () | |
public void finish () | |
public inline bool finished () const | |
public virtual bool finished (double &,double &) const | |
public inline bool started () const | |
public virtual void halt () | |
public virtual double work () const | |
public virtual ResultType get_summary () const | |
public virtual void load (hdf5::archive &) | |
public virtual void save (hdf5::archive &) const | |
protected alps::Parameters parms | |
protected bool finished_ | |
protected boost::filesystem::path infilename | |
protected bool from_file | |
protected virtual void write_xml_header (alps::oxstream &) const | |
protected virtual void write_xml_trailer (alps::oxstream &) const | |
protected void write_xml_body (alps::oxstream &,boost::filesystem::path const & fn,bool writeall) const | |
protected virtual void handle_tag (std::istream &,const XMLTag &) |
Members
public
Task
(const ProcessList &,const boost::filesystem::path &)
public
Task
(const ProcessList &,const Parameters &)
public
~Task
()
public virtual void
construct
()
public virtual void
checkpoint
(const boost::filesystem::path &,bool) const
public void
checkpoint_hdf5
(const boost::filesystem::path &) const
public void
checkpoint_xml
(const boost::filesystem::path &,bool) const
public virtual void
add_process
(const Process &)
public inline virtual uint32_t
cpus
() const
public inline virtual bool
local
()
public const alps::Parameters &
get_parameters
() const
public virtual void
start
()
public virtual void
run
()
public void
dostep
()
public void
finish
()
public inline bool
finished
() const
public virtual bool
finished
(double &,double &) const
public inline bool
started
() const
public virtual void
halt
()
public virtual double
work
() const
public virtual
ResultType
get_summary
() const
public virtual void
load
(hdf5::archive &)
public virtual void
save
(hdf5::archive &) const
protected alps::Parameters
parms
protected bool
finished_
protected boost::filesystem::path
infilename
protected bool
from_file
protected virtual void
write_xml_header
(alps::oxstream &) const
protected virtual void
write_xml_trailer
(alps::oxstream &) const
protected void
write_xml_body
(alps::oxstream &,boost::filesystem::path const & fn,bool writeall) const
protected virtual void
handle_tag
(std::istream &,const XMLTag &)
class alps::scheduler::TaskInfo
class alps::scheduler::TaskInfo
: public std::vector< Info >
Summary
Members | Descriptions |
---|---|
public inline TaskInfo () | |
public void start (const std::string &) | |
public void halt () | |
public void save (hdf5::archive &) const | |
public void load (hdf5::archive &) | |
public void save (ODump & dump) const | |
public void load (IDump & dump,int version) | |
public void write_xml (alps::oxstream &) const |
Members
public inline
TaskInfo
()
public void
start
(const std::string &)
public void
halt
()
public void
save
(hdf5::archive &) const
public void
load
(hdf5::archive &)
public void
save
(ODump & dump) const
public void
load
(IDump & dump,int version)
public void
write_xml
(alps::oxstream &) const
class alps::scheduler::Worker
class alps::scheduler::Worker
: public alps::scheduler::AbstractWorker
Summary
Members | Descriptions |
---|---|
public Worker (const ProcessList &,const Parameters &,int32_t) | |
public Worker (const Parameters &,int32_t) | |
public virtual ~Worker () | |
public virtual void set_parameters (const Parameters & parms) | |
public virtual bool change_parameter (const std::string & name,const StringValue & value) | |
public virtual void save_worker (ODump &) const | |
public virtual void load_worker (IDump &) | |
public virtual void save (hdf5::archive &) const | |
public virtual void load (hdf5::archive &) | |
public virtual void write_xml (const boost::filesystem::path & name) const | |
public virtual void save_to_file (const boost::filesystem::path &,const boost::filesystem::path &) const | |
public virtual void load_from_file (const boost::filesystem::path &,const boost::filesystem::path &) | |
public virtual TaskInfo get_info () const | |
public virtual void start_worker () | |
public virtual void halt_worker () | |
public inline virtual void start () | |
public inline virtual void halt () | |
public virtual std::string work_phase () | |
public void change_phase (const std::string &) | |
public virtual void run () | |
public virtual bool handle_message (const Process & runmaster,int32_t tag) | |
public virtual void dostep () | |
public virtual double work_done () const | |
public virtual ResultType get_summary () const | |
protected int32_t version | |
protected int32_t user_version | |
protected int node | |
protected Parameters parms | |
protected ProcessList where | |
protected mutable boost::shared_ptr< engine_type > engine_ptr | |
protected mutable boost::variate_generator< engine_type &, boost::uniform_real<> > random | |
protected mutable boost::variate_generator< engine_type &, boost::uniform_real<> > random_01 | |
protected inline double random_real (double a,double b) | |
protected inline int random_int (int a,int b) | |
protected inline int random_int (int n) |
Members
public
Worker
(const ProcessList &,const Parameters &,int32_t)
public
Worker
(const Parameters &,int32_t)
public virtual
~Worker
()
public virtual void
set_parameters
(const Parameters & parms)
public virtual bool
change_parameter
(const std::string & name,const StringValue & value)
public virtual void
save_worker
(ODump &) const
public virtual void
load_worker
(IDump &)
public virtual void
save
(hdf5::archive &) const
public virtual void
load
(hdf5::archive &)
public virtual void
write_xml
(const boost::filesystem::path & name) const
public virtual void
save_to_file
(const boost::filesystem::path &,const boost::filesystem::path &) const
public virtual void
load_from_file
(const boost::filesystem::path &,const boost::filesystem::path &)
public virtual
TaskInfo
get_info
() const
public virtual void
start_worker
()
public virtual void
halt_worker
()
public inline virtual void
start
()
public inline virtual void
halt
()
public virtual std::string
work_phase
()
public void
change_phase
(const std::string &)
public virtual void
run
()
public virtual bool
handle_message
(const Process & runmaster,int32_t tag)
public virtual void
dostep
()
public virtual double
work_done
() const
public virtual
ResultType
get_summary
() const
protected int32_t
version
protected int32_t
user_version
protected int
node
protected Parameters
parms
protected ProcessList
where
protected mutable boost::shared_ptr< engine_type >
engine_ptr
protected mutable boost::variate_generator< engine_type &, boost::uniform_real<> >
random
protected mutable boost::variate_generator< engine_type &, boost::uniform_real<> >
random_01
protected inline double
random_real
(double a,double b)
protected inline int
random_int
(int a,int b)
protected inline int
random_int
(int n)
class alps::scheduler::WorkerTask
class alps::scheduler::WorkerTask
: public alps::scheduler::Task
Summary
Members | Descriptions |
---|---|
public std::vector< AbstractWorker * > runs | |
public WorkerTask (const ProcessList &,const boost::filesystem::path &) | |
public WorkerTask (const ProcessList &,const Parameters &) | |
public ~WorkerTask () | |
public virtual void construct () | |
public virtual void add_process (const Process &) | |
public virtual void start () | |
public virtual void dostep () | |
public virtual bool finished (double &,double &) const | |
public virtual void halt () | |
public virtual double work () const | |
public double work_done () const | |
public virtual ResultType get_summary () const | |
protected std::vector< RunStatus > workerstatus | |
protected std::string worker_tag () const | |
protected virtual void write_xml_body (alps::oxstream &,boost::filesystem::path const &,bool writeall) const | |
protected virtual void handle_tag (std::istream &,const XMLTag &) | |
enum RunStatus |
Members
public std::vector<
AbstractWorker
* >
runs
public
WorkerTask
(const ProcessList &,const boost::filesystem::path &)
public
WorkerTask
(const ProcessList &,const Parameters &)
public
~WorkerTask
()
public virtual void
construct
()
public virtual void
add_process
(const Process &)
public virtual void
start
()
public virtual void
dostep
()
public virtual bool
finished
(double &,double &) const
public virtual void
halt
()
public virtual double
work
() const
public double
work_done
() const
public virtual
ResultType
get_summary
() const
protected std::vector< RunStatus >
workerstatus
protected std::string
worker_tag
() const
protected virtual void
write_xml_body
(alps::oxstream &,boost::filesystem::path const &,bool writeall) const
protected virtual void
handle_tag
(std::istream &,const XMLTag &)
enum
RunStatus
Values | Descriptions |
---|---|
RunNotExisting | |
LocalRun | |
RemoteRun | |
RunOnDump |
struct alps::scheduler::CheckpointFiles
Summary
Members | Descriptions |
---|---|
public boost::filesystem::path in | |
public boost::filesystem::path out | |
public boost::filesystem::path hdf5in | |
public boost::filesystem::path hdf5out |
Members
public boost::filesystem::path
in
public boost::filesystem::path
out
public boost::filesystem::path
hdf5in
public boost::filesystem::path
hdf5out
struct alps::scheduler::rt
Summary
Members | Descriptions |
---|---|
public double T | |
public double mean | |
public double error | |
public double count | |
public inline rt operator+= (const rt c) |
Members
public double
T
public double
mean
public double
error
public double
count
public inline
rt
operator+=
(const
rt
c)
struct alps::scheduler::TaskStatus
Summary
Members | Descriptions |
---|---|
public int32_t number | |
public uint32_t cpus | |
public boost::posix_time::ptime next_check | |
public double work | |
public ProcessList where | |
public inline TaskStatus () |
Members
public int32_t
number
public uint32_t
cpus
public boost::posix_time::ptime
next_check
public double
work
public ProcessList
where
public inline
TaskStatus
()
Generated by Moxygen