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;
63  int ckpt_mode;
66  int snapshot;
69  int verbose;
71  bool serial;
73  bool core_binding;
77 
79 
80 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:72
int check_termination_mode
Check termination strategy: standard or incremental.
Definition: init.h:67
char * output_dir
Destination Directory of output files.
Definition: init.h:58
int verbose
Kernel verbose.
Definition: init.h:69
int ckpt_period
Number of events to execute before taking a snapshot in PSS (ignored otherwise)
Definition: init.h:65
int checkpointing
Type of checkpointing scheme (e.g., PSS, CSS, ...)
Definition: init.h:64
bool deterministic_seed
Does not change the seed value config file that will be read during the next runs.
Definition: init.h:68
Statistics module.
param_codes
Definition: init.h:38
void SystemInit(int argc, char **argv)
Definition: init.c:392
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:63
const char *const param_to_text[][5]
Definition: init.c:98
Configuration of the execution of the simulator.
Definition: init.h:57
bool silent_output
Disable any output generated by printf() calls.
Definition: init.h:75
int simulation_time
Wall-clock-time based termination predicate.
Definition: init.h:61
enum stats_levels stats
Produce performance statistic file (default STATS_ALL)
Definition: init.h:70
int lps_distribution
Policy for the LP to Kernel mapping.
Definition: init.h:62
int snapshot
Type of snapshot (e.g., full, incremental, autonomic, ...)
Definition: init.h:66
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:73
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:71
bool disable_preemption
If compiled for preemptive Time Warp, it can be disabled at runtime.
Definition: init.h:74