ROSS
ross-global.c File Reference
#include <ross.h>

Go to the source code of this file.

Variables

tw_synch g_tw_synchronization_protocol =NO_SYNCH
map_local_f g_tw_custom_lp_global_to_local_map =NULL
map_custom_f g_tw_custom_initial_mapping =NULL
tw_lp_map g_tw_mapping =LINEAR
tw_lpid g_tw_nlp = 0
tw_lpid g_tw_total_lps = 0
tw_lpid g_tw_lp_offset = 0
tw_kpid g_tw_nkp = 1
tw_lp ** g_tw_lp = NULL
tw_kp ** g_tw_kp = NULL
int g_tw_fossil_attempts = 0
unsigned int g_tw_nRNG_per_lp = 1
unsigned int g_tw_nRNG_core_per_lp = 1
tw_lpid g_tw_rng_default = 1
tw_seed g_tw_rng_seed = NULL
tw_seed g_tw_core_rng_seed = NULL
unsigned int g_tw_sim_started = 0
size_t g_tw_msg_sz
size_t g_tw_delta_sz = 0
uint32_t g_tw_buddy_alloc = 0
buddy_list_bucket_tg_tw_buddy_master = 0
uint32_t g_tw_avl_node_count = 18
unsigned int g_tw_lz4_knob = 17
size_t g_tw_event_msg_sz = 0
double g_tw_lookahead =0.005
double g_tw_min_detected_offset =DBL_MAX
unsigned int g_tw_mblock = 16
unsigned int g_tw_gvt_interval = 16
unsigned long long g_tw_max_opt_lookahead = ULLONG_MAX
unsigned long long g_tw_gvt_realtime_interval
unsigned long long g_tw_gvt_interval_start_cycles = 0
double g_tw_ts_end = 100000.0
tw_peg_tw_pe = NULL
unsigned int g_tw_events_per_pe = 2048
unsigned int g_tw_events_per_pe_extra = 0
unsigned int g_tw_gvt_threshold = 1000
unsigned int g_tw_gvt_done = 0
unsigned int g_tw_net_device_size = 0
tw_peid g_tw_mynode = 0
tw_peid g_tw_masternode = 0
FILE * g_tw_csv = NULL
unsigned long long g_tw_clock_rate =1000000000.0
tw_lptypeg_tw_lp_types = NULL
tw_typemap_f g_tw_lp_typemap = &map_onetype

Variable Documentation

◆ g_tw_avl_node_count

uint32_t g_tw_avl_node_count = 18

Definition at line 41 of file ross-global.c.

Referenced by avl_alloc(), avlInsert(), and tw_hash_create().

◆ g_tw_buddy_alloc

uint32_t g_tw_buddy_alloc = 0

Allocation for buddy system

Definition at line 39 of file ross-global.c.

Referenced by setup_pes().

◆ g_tw_buddy_master

buddy_list_bucket_t* g_tw_buddy_master = 0

Definition at line 40 of file ross-global.c.

Referenced by buddy_alloc(), buddy_free(), buddy_try_merge(), and setup_pes().

◆ g_tw_clock_rate

◆ g_tw_core_rng_seed

tw_seed g_tw_core_rng_seed = NULL

Definition at line 35 of file ross-global.c.

Referenced by rng_core_init(), and tw_init().

◆ g_tw_csv

FILE* g_tw_csv = NULL

◆ g_tw_custom_initial_mapping

map_custom_f g_tw_custom_initial_mapping =NULL

Definition at line 21 of file ross-global.c.

Referenced by tw_define_lps().

◆ g_tw_custom_lp_global_to_local_map

map_local_f g_tw_custom_lp_global_to_local_map =NULL

Definition at line 20 of file ross-global.c.

Referenced by io_event_deserialize(), and tw_getlocal_lp().

◆ g_tw_delta_sz

size_t g_tw_delta_sz = 0

Definition at line 38 of file ross-global.c.

Referenced by tw_delta_alloc(), tw_lp_settype(), and tw_snapshot_delta().

◆ g_tw_event_msg_sz

size_t g_tw_event_msg_sz = 0

Definition at line 47 of file ross-global.c.

Referenced by tw_eventq_alloc().

◆ g_tw_events_per_pe

unsigned int g_tw_events_per_pe = 2048

Definition at line 80 of file ross-global.c.

Referenced by main(), setup_pes(), tw_eventq_alloc(), and tw_stats().

◆ g_tw_events_per_pe_extra

unsigned int g_tw_events_per_pe_extra = 0

Number of extra events allocated per PE. Command-line customizable.

Definition at line 82 of file ross-global.c.

Referenced by setup_pes(), and tw_stats().

◆ g_tw_fossil_attempts

int g_tw_fossil_attempts = 0

Definition at line 30 of file ross-global.c.

Referenced by tw_get_stats(), and tw_pe_fossil_collect().

◆ g_tw_gvt_done

unsigned int g_tw_gvt_done = 0

◆ g_tw_gvt_interval

unsigned int g_tw_gvt_interval = 16

◆ g_tw_gvt_interval_start_cycles

unsigned long long g_tw_gvt_interval_start_cycles = 0

◆ g_tw_gvt_realtime_interval

unsigned long long g_tw_gvt_realtime_interval

◆ g_tw_gvt_threshold

unsigned int g_tw_gvt_threshold = 1000

◆ g_tw_kp

◆ g_tw_lookahead

double g_tw_lookahead =0.005

Definition at line 53 of file ross-global.c.

Referenced by io_load_events(), main(), tw_event_send(), and tw_scheduler_conservative().

◆ g_tw_lp

◆ g_tw_lp_offset

tw_lpid g_tw_lp_offset = 0

Definition at line 26 of file ross-global.c.

Referenced by io_event_deserialize(), map_linear(), and tw_getlocal_lp().

◆ g_tw_lp_typemap

tw_typemap_f g_tw_lp_typemap = &map_onetype

Definition at line 106 of file ross-global.c.

Referenced by io_store_checkpoint(), st_model_setup_types(), and tw_lp_setup_types().

◆ g_tw_lp_types

tw_lptype* g_tw_lp_types = NULL

Definition at line 105 of file ross-global.c.

Referenced by tw_lp_setup_types().

◆ g_tw_lz4_knob

unsigned int g_tw_lz4_knob = 17

Tunable LZ4 param. Higher = faster with less compression. 17 is a good value for speed with 1 being the default value.

Definition at line 45 of file ross-global.c.

Referenced by tw_snapshot_delta().

◆ g_tw_mapping

tw_lp_map g_tw_mapping =LINEAR

Definition at line 22 of file ross-global.c.

Referenced by io_event_deserialize(), setup_pes(), tw_define_lps(), and tw_getlocal_lp().

◆ g_tw_masternode

◆ g_tw_max_opt_lookahead

unsigned long long g_tw_max_opt_lookahead = ULLONG_MAX

Definition at line 68 of file ross-global.c.

◆ g_tw_mblock

unsigned int g_tw_mblock = 16

Number of messages to process at once out of the PQ before returning back to handling things like GVT, message recption, etc. AKA the "batch" parameter to ROSS.

Definition at line 66 of file ross-global.c.

Referenced by tw_gvt_stats(), tw_sched_batch(), tw_sched_batch_realtime(), and tw_scheduler_conservative().

◆ g_tw_min_detected_offset

double g_tw_min_detected_offset =DBL_MAX

Definition at line 59 of file ross-global.c.

Referenced by tw_event_new_user_prio(), and tw_get_stats().

◆ g_tw_msg_sz

◆ g_tw_mynode

◆ g_tw_net_device_size

unsigned int g_tw_net_device_size = 0

Definition at line 91 of file ross-global.c.

Referenced by tw_eventq_alloc(), and tw_net_start().

◆ g_tw_nkp

◆ g_tw_nlp

◆ g_tw_nRNG_core_per_lp

unsigned int g_tw_nRNG_core_per_lp = 1

Definition at line 32 of file ross-global.c.

Referenced by tw_define_lps(), and tw_rand_init_streams().

◆ g_tw_nRNG_per_lp

unsigned int g_tw_nRNG_per_lp = 1

◆ g_tw_pe

◆ g_tw_rng_default

tw_lpid g_tw_rng_default = 1

Definition at line 33 of file ross-global.c.

Referenced by tw_define_lps().

◆ g_tw_rng_seed

tw_seed g_tw_rng_seed = NULL

Definition at line 34 of file ross-global.c.

Referenced by rng_init(), and tw_init().

◆ g_tw_sim_started

unsigned int g_tw_sim_started = 0

Definition at line 36 of file ross-global.c.

Referenced by tw_get_stats(), and tw_sched_init().

◆ g_tw_synchronization_protocol

◆ g_tw_total_lps

tw_lpid g_tw_total_lps = 0

Definition at line 25 of file ross-global.c.

Referenced by setup_pes(), tw_define_lps(), and tw_rand_init_streams().

◆ g_tw_ts_end