Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
4d0d7c6b
Commit
4d0d7c6b
authored
Aug 09, 2013
by
Misbah Mubarak
Browse files
Making codes_mapping_init and codes_mapping_to_lp functions static
parent
cd247f92
Changes
2
Show whitespace changes
Inline
Side-by-side
codes/codes_mapping.h
View file @
4d0d7c6b
...
@@ -34,11 +34,3 @@ void codes_mapping_get_lp_id(char* grp_name, char* lp_type_name, int rep_id, int
...
@@ -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). */
* (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
);
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
);
src/util/codes_mapping.c
View file @
4d0d7c6b
...
@@ -172,7 +172,7 @@ void codes_mapping_get_lp_info(tw_lpid gid, char* grp_name, int* grp_id, int* lp
...
@@ -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 */
/* 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
;
int
grp_id
,
lpt_id
,
rep_id
,
offset
;
tw_lpid
ross_gid
,
ross_lid
;
/* ross global and local IDs */
tw_lpid
ross_gid
,
ross_lid
;
/* ross global and local IDs */
...
@@ -206,7 +206,7 @@ void codes_mapping_init(void)
...
@@ -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
/* 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
* lps have global and local LP IDs
* global LP IDs are unique across all PEs, local LP IDs are unique within a PE */
* 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
);
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);
// 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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment