23#ifndef SIMULATION_MANAGER_H
24#define SIMULATION_MANAGER_H
52 void finalize(
const bool )
override;
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Collect cycle duration and spike-count information for individual update cycles.
Definition cycle_time_log.h:39
ManagerInterface(ManagerInterface const &)=delete
Base class for all NEST network objects.
Definition node.h:99
void update_connection_infrastructure(const size_t tid)
Sorts source table and connections and create new target table.
Definition simulation_manager.cpp:765
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::MasterOnly > sw_gather_spike_data_
Definition simulation_manager.h:233
double wfr_comm_interval_
Definition simulation_manager.h:217
Stopwatch< StopwatchGranularity::Normal, StopwatchParallelism::Threaded > sw_communicate_prepare_
Definition simulation_manager.h:231
double update_time_limit_
Definition simulation_manager.h:224
bool simulating_
true if simulation in progress
Definition simulation_manager.h:209
Time get_eprop_update_interval() const
Definition simulation_manager.h:343
bool use_wfr_
Indicates wheter waveform relaxation is used.
Definition simulation_manager.h:216
long get_to_step() const
Return end of current time slice, in steps.
Definition simulation_manager.h:313
timeval t_slice_begin_
Wall-clock time at the begin of a time slice.
Definition simulation_manager.h:204
Time const get_time() const
Precise time of simulation.
Definition simulation_manager.h:256
size_t wfr_interpolation_order_
Definition simulation_manager.h:222
void print_progress_()
TODO: Remove, replace by logging!
Definition simulation_manager.cpp:1241
size_t get_slice() const
Get slice number.
Definition simulation_manager.h:275
Time run_duration() const
Get the simulation duration in the current call to run().
Definition simulation_manager.h:287
void advance_time_()
Update time to next time step.
Definition simulation_manager.cpp:1207
Time const get_previous_slice_origin() const
Get the time at the beginning of the previous time slice.
Definition simulation_manager.cpp:1268
double get_wfr_tol() const
Get the convergence tolerance of the waveform relaxation method.
Definition simulation_manager.h:331
bool has_been_simulated() const
Return true, if the SimulationManager has already been simulated for some time.
Definition simulation_manager.h:263
double wfr_tol_
Convergence tolerance of waveform relaxation method.
Definition simulation_manager.h:219
void update_()
Definition simulation_manager.cpp:857
bool has_been_prepared() const
Return true, if the SimulationManager has been prepared for simulation.
Definition simulation_manager.h:269
Time run_end_time() const
Get the simulation's time at the end of the current call to run().
Definition simulation_manager.h:300
void assert_valid_simtime(Time const &)
Check for errors in time before run.
Definition simulation_manager.cpp:588
SimulationManager()
Definition simulation_manager.cpp:45
virtual void reset_timers_for_dynamics()
Set time measurements for internal profiling to zero (reg.
Definition simulation_manager.cpp:129
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::Threaded > sw_deliver_spike_data_
Definition simulation_manager.h:237
bool get_eprop_reset_neurons_on_update() const
Definition simulation_manager.h:355
long to_do_total_
number of requested steps in current simulation
Definition simulation_manager.h:201
double min_update_time_
shortest update time seen so far (seconds)
Definition simulation_manager.h:226
bool eprop_reset_neurons_on_update_
Definition simulation_manager.h:246
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::Threaded > sw_gather_target_data_
Definition simulation_manager.h:236
bool wfr_update_(Node *)
actually perform simulation
Definition simulation_manager.cpp:851
double eprop_learning_window_
Definition simulation_manager.h:245
virtual void reset_timers_for_preparation()
Set time measurements for internal profiling to zero (reg.
Definition simulation_manager.cpp:122
bool inconsistent_state_
Definition simulation_manager.h:212
Stopwatch< StopwatchGranularity::Normal, StopwatchParallelism::MasterOnly > sw_simulate_
Definition simulation_manager.h:230
Time run_start_time() const
Get the start time of the current call to run().
Definition simulation_manager.h:293
timeval t_slice_end_
Wall-clock time at the end of time slice.
Definition simulation_manager.h:205
double max_update_time_
longest update time seen so far (seconds)
Definition simulation_manager.h:227
long to_step_
update clock_+from_step<=T<clock_+to_step_
Definition simulation_manager.h:203
void finalize(const bool) override
Take down manager after operation.
Definition simulation_manager.cpp:117
double eprop_update_interval_
Definition simulation_manager.h:244
Time clock_
SimulationManager clock, updated once per slice.
Definition simulation_manager.h:198
size_t get_wfr_interpolation_order() const
Get the interpolation order of the waveform relaxation method.
Definition simulation_manager.h:337
void call_update_()
actually run simulation, aka wrap update_
Definition simulation_manager.cpp:709
long t_real_
Accumulated wall-clock time spent simulating (in us).
Definition simulation_manager.h:206
bool print_time_
Definition simulation_manager.h:214
long from_step_
update clock_+from_step<=T<clock_+to_step_
Definition simulation_manager.h:202
Time get_eprop_learning_window() const
Definition simulation_manager.h:349
long get_from_step() const
Return start of current time slice, in steps.
Definition simulation_manager.h:307
void set_status(const Dictionary &) override
Set the status of the manager.
Definition simulation_manager.cpp:140
double get_wfr_comm_interval() const
Get the desired communication interval for the waveform relaxation.
Definition simulation_manager.h:325
long slice_
current update slice
Definition simulation_manager.h:199
long to_do_
number of pending steps
Definition simulation_manager.h:200
Time const & get_slice_origin() const
Get the time at the beginning of the current time slice.
Definition simulation_manager.h:250
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::Threaded > sw_update_
Definition simulation_manager.h:235
void initialize(const bool) override
Prepare manager for operation.
Definition simulation_manager.cpp:73
void prepare() override
Initialize simulation for a set of run calls.
Definition simulation_manager.cpp:508
bool use_wfr() const
Returns true if waveform relaxation is used.
Definition simulation_manager.h:319
long wfr_max_iterations_
Definition simulation_manager.h:220
bool prepared_
Definition simulation_manager.h:207
bool simulated_
Definition simulation_manager.h:210
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::MasterOnly > sw_gather_secondary_data_
Definition simulation_manager.h:234
void cleanup() override
Closes a set of runs, doing finalizations such as file closures.
Definition simulation_manager.cpp:689
Time const & get_clock() const
Return current simulation time.
Definition simulation_manager.h:281
Stopwatch< StopwatchGranularity::Detailed, StopwatchParallelism::Threaded > sw_deliver_secondary_data_
Definition simulation_manager.h:238
void run(Time const &)
Run a simulation for another Time.
Definition simulation_manager.cpp:629
void get_status(Dictionary &) override
Retrieve the status of the manager.
Definition simulation_manager.cpp:459
Definition nest_time.h:135
friend struct step
Definition nest_time.h:177
static Time get_resolution()
Definition nest_time.h:325
friend struct ms
Definition nest_time.h:179
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33