The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
init.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <core/core.h>
14 #include <log/log.h>
15 
16 #include <stdbool.h>
17 #include <stdint.h>
18 
24  unsigned gvt_period;
26  int verbosity;
28  uint64_t prng_seed;
32  bool is_serial;
33 };
34 
37 
38 extern void init_args_parse(int argc, char **argv);
simtime_t
double simtime_t
The type used to represent logical time in the simulation.
Definition: core.h:62
simulation_configuration::core_binding
bool core_binding
If set, worker threads are bound to physical cores.
Definition: init.h:30
simulation_configuration::termination_time
simtime_t termination_time
The target termination logical time.
Definition: init.h:22
simulation_configuration::gvt_period
unsigned gvt_period
The gvt period expressed in microseconds.
Definition: init.h:24
simulation_configuration::is_serial
bool is_serial
If set, the simulation will run on the serial runtime.
Definition: init.h:32
init_args_parse
void init_args_parse(int argc, char **argv)
Parses ROOT-Sim command line arguments.
Definition: init.c:217
simulation_configuration
A set of configurable values used by other modules.
Definition: init.h:20
log.h
Logging library.
global_config
struct simulation_configuration global_config
The configuration filled in by init_args_parse()
Definition: init.c:27
core.h
Core ROOT-Sim functionalities.
simulation_configuration::verbosity
int verbosity
The log verbosity level.
Definition: init.h:26
simulation_configuration::prng_seed
uint64_t prng_seed
The seed used to initialize the pseudo random numbers.
Definition: init.h:28