tw_define_lps is defined here! More...
Go to the source code of this file.
Macros | |
#define | VERIFY_MAPPING 0 |
Functions | |
static tw_pe * | setup_pes (void) |
void | tw_init (int *argc, char ***argv) |
static void | early_sanity_check (void) |
void | map_linear (void) |
void | map_round_robin (void) |
void | tw_define_lps (tw_lpid nlp, size_t msg_sz) |
static void | late_sanity_check (void) |
void | tw_run (void) |
void | tw_end (void) |
static void | tw_delta_alloc (tw_pe *pe) |
tw_lpid | map_onetype (tw_lpid gid) |
Variables | |
unsigned int | nkp_per_pe = 16 |
static tw_clock | init_start = 0 |
static const tw_optdef | kernel_options [] |
#define VERIFY_MAPPING 0 |
Definition at line 10 of file tw-setup.c.
|
static |
Definition at line 122 of file tw-setup.c.
References g_tw_nkp, g_tw_nlp, nkp_per_pe, tw_error(), TW_LOC, and tw_printf().
Referenced by tw_define_lps().
|
static |
Definition at line 279 of file tw-setup.c.
References g_st_analysis_nlp, g_tw_lp, g_tw_nkp, g_tw_nlp, tw_lp::id, tw_lp::kp, tw_lp::pe, tw_kp::pe, tw_error(), tw_getkp(), TW_LOC, and tw_lp::type.
Referenced by tw_run().
void map_linear | ( | void | ) |
Definition at line 135 of file tw-setup.c.
References g_tw_kp, g_tw_lp, g_tw_lp_offset, g_tw_mynode, g_tw_nkp, g_tw_nlp, g_tw_pe, tw_pe::id, nkp_per_pe, tw_error(), tw_kp_onpe(), TW_LOC, tw_lp_onkp(), and tw_lp_onpe().
Referenced by tw_define_lps().
Definition at line 538 of file tw-setup.c.
void map_round_robin | ( | void | ) |
Definition at line 189 of file tw-setup.c.
References g_tw_kp, g_tw_lp, g_tw_mynode, g_tw_nkp, g_tw_nlp, g_tw_pe, tw_pe::id, pe, tw_kp_onpe(), tw_lp_onkp(), tw_lp_onpe(), and tw_nnodes().
Referenced by tw_define_lps().
|
static |
Definition at line 448 of file tw-setup.c.
References tw_pe::abort_event, create_buddy_table(), CUSTOM, tw_pe::free_q, g_io_events_buffered_per_rank, g_io_free_events, g_tw_buddy_alloc, g_tw_buddy_master, g_tw_csv, g_tw_events_per_pe, g_tw_events_per_pe_extra, g_tw_gvt_threshold, g_tw_mapping, g_tw_masternode, g_tw_mynode, g_tw_nkp, g_tw_nlp, g_tw_pe, g_tw_ts_end, LINEAR, pe, tw_pe::pq, ROUND_ROBIN, tw_pe::stats, tw_clock_read(), tw_delta_alloc(), tw_error(), tw_eventq_alloc(), tw_eventq_pop(), tw_eventq_push(), tw_eventq_shift(), TW_LOC, tw_nnodes(), and tw_pq_create().
Referenced by tw_run().
void tw_define_lps | ( | tw_lpid | nlp, |
size_t | msg_sz | ||
) |
IMPORTANT: This function sets the value for g_tw_nlp which is a rather important global variable. It is also set in (very few) other places, but mainly just here.
Definition at line 218 of file tw-setup.c.
References CUSTOM, early_sanity_check(), g_st_analysis_nlp, g_tw_custom_initial_mapping, g_tw_kp, g_tw_lp, g_tw_mapping, g_tw_msg_sz, g_tw_nkp, g_tw_nlp, g_tw_nRNG_per_lp, g_tw_rng_default, g_tw_synchronization_protocol, LINEAR, map_linear(), map_round_robin(), nkp_per_pe, OPTIMISTIC_DEBUG, ROUND_ROBIN, specialized_lp_init_mapping(), specialized_lp_setup(), st_buffer_allocate(), tw_calloc(), tw_error(), TW_LOC, and tw_rand_init_streams().
Referenced by main().
|
static |
By the time this function gets called, g_tw_delta_sz should be as large as it will ever get.
Definition at line 440 of file tw-setup.c.
References tw_pe::delta_buffer, g_tw_delta_sz, LZ4_compressBound(), tw_calloc(), and TW_LOC.
Referenced by setup_pes().
void tw_end | ( | void | ) |
Definition at line 420 of file tw-setup.c.
References g_tw_csv, tw_ismaster(), and tw_net_stop().
Referenced by main().
void tw_init | ( | int * | argc, |
char *** | argv | ||
) |
Definition at line 33 of file tw-setup.c.
References g_st_use_analysis_lps, g_tw_csv, init_start, io_opts, ROSS_VERSION, st_inst_opts(), st_special_lp_opts(), tw_clock_read(), tw_clock_setup(), tw_error(), tw_gvt_setup(), tw_gvt_start(), tw_ismaster(), TW_LOC, tw_net_init(), tw_net_start(), tw_opt_add(), and tw_opt_parse().
Referenced by main().
void tw_run | ( | void | ) |
Definition at line 339 of file tw-setup.c.
References CONSERVATIVE, g_tw_synchronization_protocol, tw_pe::id, init_start, late_sanity_check(), OPTIMISTIC, OPTIMISTIC_DEBUG, OPTIMISTIC_REALTIME, tw_statistics::s_init, SEQUENTIAL, setup_pes(), st_inst_init(), tw_pe::stats, tw_clock_read(), tw_error(), TW_LOC, tw_sched_init(), tw_scheduler_conservative(), tw_scheduler_optimistic(), tw_scheduler_optimistic_debug(), tw_scheduler_optimistic_realtime(), and tw_scheduler_sequential().
Referenced by main().
|
static |
Definition at line 14 of file tw-setup.c.
|
static |
Definition at line 16 of file tw-setup.c.
unsigned int nkp_per_pe = 16 |
Definition at line 13 of file tw-setup.c.
Referenced by early_sanity_check(), map_linear(), and tw_define_lps().