Commit 4d0d7c6b authored by Misbah Mubarak's avatar Misbah Mubarak

Making codes_mapping_init and codes_mapping_to_lp functions static

parent cd247f92
......@@ -34,11 +34,3 @@ void codes_mapping_get_lp_id(char* grp_name, char* lp_type_name, int rep_id, int
* (for multiple LPs in a repetition). */
void codes_mapping_get_lp_info(tw_lpid gid, char* grp_name, int* grp_id, int* lp_type_id, char* lp_type_name, int* grp_rep_id, int* offset);
/* assigns local and global lp ids for ROSS. */
void codes_mapping_init(void);
/* Takes the global LP ID, maps it to the local LP ID and returns the LP.
* lps have global and local LP IDs.
* global LP IDs are unique across all PEs, local LP IDs are unique within a PE. */
tw_lp * codes_mapping_to_lp( tw_lpid lpid);
......@@ -172,7 +172,7 @@ void codes_mapping_get_lp_info(tw_lpid gid, char* grp_name, int* grp_id, int* lp
}
/* This function assigns local and global LP Ids to LPs */
void codes_mapping_init(void)
static void codes_mapping_init(void)
{
int grp_id, lpt_id, rep_id, offset;
tw_lpid ross_gid, ross_lid; /* ross global and local IDs */
......@@ -206,7 +206,7 @@ void codes_mapping_init(void)
/* This function takes the global LP ID, maps it to the local LP ID and returns the LP
* lps have global and local LP IDs
* global LP IDs are unique across all PEs, local LP IDs are unique within a PE */
tw_lp * codes_mapping_to_lp( tw_lpid lpid)
static tw_lp * codes_mapping_to_lp( tw_lpid lpid)
{
int index = lpid - (g_tw_mynode * lps_for_this_pe);
// printf("\n global id %d index %d lps_before %d lps_offset %d local index %d ", lpid, index, lps_before, g_tw_mynode, local_index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment