Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
4d0d7c6b
Commit
4d0d7c6b
authored
Aug 09, 2013
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making codes_mapping_init and codes_mapping_to_lp functions static
parent
cd247f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
codes/codes_mapping.h
codes/codes_mapping.h
+0
-8
src/util/codes_mapping.c
src/util/codes_mapping.c
+2
-2
No files found.
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
* (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
);
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
}
/* 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);
...
...
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