The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
lp.c File Reference

LP construction functions. More...

#include <lp/lp.h>
#include <core/sync.h>
#include <gvt/fossil.h>
+ Include dependency graph for lp.c:

Go to the source code of this file.

Macros

#define lp_start_id_compute(trd)
 

Functions

static void lp_iterator_init (void)
 
void lp_global_init (void)
 
void lp_global_fini (void)
 
void lp_init (void)
 
void lp_fini (void)
 
lp_id_t lp_id_get_mt (void)
 
struct lib_ctxlib_ctx_get_mt (void)
 

Variables

__thread uint64_t lp_id_first
 
__thread uint64_t lp_id_end
 
__thread struct lp_ctxcurrent_lp
 
struct lp_ctxlps
 
lp_id_t n_lps_node
 The total number of LPs hosted in the node.
 

Detailed Description

LP construction functions.

LP construction functions

Definition in file lp.c.

Macro Definition Documentation

◆ lp_start_id_compute

#define lp_start_id_compute (   trd)
Value:
__extension__({ \
lp_id_t _g = (trd) * n_lps_node / n_threads; \
while (_g && lid_to_rid(_g) >= (trd)) \
--_g; \
while (lid_to_rid(_g) < (trd)) \
++_g; \
_g; \
})

Definition at line 23 of file lp.c.

n_threads
rid_t n_threads
The total number of MPI nodes in the simulation.
Definition: core.c:15
n_lps_node
lp_id_t n_lps_node
The total number of LPs hosted in the node.
Definition: lp.c:21