 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Go to the documentation of this file.
32 #define lid_to_rid(lp_id) ((lp_id) * n_threads / n_lps_node)
34 extern __thread uint64_t lp_id_first;
35 extern __thread uint64_t lp_id_end;
38 extern __thread
struct lp_ctx *current_lp;
41 extern void lp_global_init(
void);
42 extern void lp_global_fini(
void);
44 extern void lp_init(
void);
45 extern void lp_fini(
void);
47 extern void lp_cleanup(
void);
49 __attribute__ ((pure))
extern lp_id_t lp_id_get_mt(
void);
50 __attribute__ ((pure))
extern struct lib_ctx *lib_ctx_get_mt(
void);
double simtime_t
The type used to represent logical time in the simulation.
Model library main header.
The checkpointable memory context assigned to a single LP.
The message processing data produced by the LP.
struct process_data p
The message processing context of this LP.
Message management functions.
LP state management functions.
Termination detection module.
uint64_t n_lps_node
The total number of LPs hosted in the node.
struct lib_ctx * lib_ctx_p
The additional libraries context of this LP.
uint64_t lp_id_t
Used to uniquely identify LPs in the simulation.
Memory management functions for simulation models.
Core ROOT-Sim functionalities.
simtime_t t_d
The termination time of this LP, handled by the termination module.