The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
init.h
Go to the documentation of this file.
1 
31 #pragma once
32 
33 #include <statistics/statistics.h>
34 
39  PARAM_SCHEDULER = 0,
40  PARAM_CKTRM_MODE,
41  PARAM_LPS_DISTRIBUTION,
42  PARAM_VERBOSE,
43  PARAM_STATS,
44  PARAM_STATE_SAVING,
45  PARAM_SNAPSHOT,
46 };
47 
54 extern const char *const param_to_text[][5];
55 
57 typedef struct _simulation_configuration {
58  char *output_dir;
59  int scheduler;
64  int ckpt_mode;
67  int snapshot;
70  int verbose;
72  bool serial;
74  bool core_binding;
75 
76 #ifdef HAVE_PREEMPTION
78 #endif
79 
81 
83 
84 extern void SystemInit(int argc, char **argv);
uint64_t seed_type
Numerical seed type.
Definition: numerical.h:36
seed_type set_seed
The master seed to be used in this run.
Definition: init.h:73
int check_termination_mode
Check termination strategy: standard or incremental.
Definition: init.h:68
char * output_dir
Destination Directory of output files.
Definition: init.h:58
int verbose
Kernel verbose.
Definition: init.h:70
int ckpt_period
Number of events to execute before taking a snapshot in PSS (ignored otherwise)
Definition: init.h:66
int checkpointing
Type of checkpointing scheme (e.g., PSS, CSS, ...)
Definition: init.h:65
bool deterministic_seed
Does not change the seed value config file that will be read during the next runs.
Definition: init.h:69
Statistics module.
param_codes
Definition: init.h:38
void SystemInit(int argc, char **argv)
Definition: init.c:401
stats_levels
Definition: statistics.h:105
int scheduler
Which scheduler to be used.
Definition: init.h:59
simulation_configuration rootsim_config
This global variable holds the configuration for the current simulation.
Definition: core.c:70
int ckpt_mode
Type of checkpointing mode (Synchronous, Semi-Asyncronous, ...)
Definition: init.h:64
const char *const param_to_text[][5]
Definition: init.c:101
Configuration of the execution of the simulator.
Definition: init.h:57
int simulation_time
Wall-clock-time based termination predicate.
Definition: init.h:62
enum stats_levels stats
Produce performance statistic file (default STATS_ALL)
Definition: init.h:71
int lps_distribution
Policy for the LP to Kernel mapping.
Definition: init.h:63
int snapshot
Type of snapshot (e.g., full, incremental, autonomic, ...)
Definition: init.h:67
struct _simulation_configuration simulation_configuration
Configuration of the execution of the simulator.
bool core_binding
Bind threads to specific core (reduce context switches and cache misses)
Definition: init.h:74
int gvt_time_period
Wall-Clock time to wait before executiong GVT operations.
Definition: init.h:60
bool serial
If the simulation must be run serially.
Definition: init.h:72
bool disable_preemption
If compiled for preemptive Time Warp, it can be disabled at runtime.
Definition: init.h:77
int gvt_snapshot_cycles
GVT operations to be executed before rebuilding the state.
Definition: init.h:61