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
453a5268
Commit
453a5268
authored
Jan 20, 2014
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug lp,kp,pe mapping in codes-mapping
parent
eac6ca65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/util/codes_mapping.c
src/util/codes_mapping.c
+5
-0
No files found.
src/util/codes_mapping.c
View file @
453a5268
...
...
@@ -9,6 +9,8 @@
*/
#include "codes/codes_mapping.h"
#define CODES_MAPPING_DEBUG 0
/* number of LPs assigned to the current PE (abstraction of MPI rank) */
static
int
lps_for_this_pe
=
0
;
static
int
mem_factor
=
1024
;
...
...
@@ -195,6 +197,9 @@ static void codes_mapping_init(void)
kpid
=
ross_lid
%
g_tw_nkp
;
pe
=
tw_getpe
(
kpid
%
g_tw_npe
);
codes_mapping_get_lp_info
(
ross_gid
,
grp_name
,
&
grp_id
,
&
lpt_id
,
lp_type_name
,
&
rep_id
,
&
offset
);
#if CODES_MAPPING_DEBUG
printf
(
"lp:%lu --> kp:%lu, pe:%llu
\n
"
,
ross_gid
,
kpid
,
pe
->
id
);
#endif
tw_lp_onpe
(
ross_lid
,
pe
,
ross_gid
);
tw_lp_onkp
(
g_tw_lp
[
ross_lid
],
g_tw_kp
[
kpid
]);
tw_lp_settype
(
ross_lid
,
lp_type_lookup
(
lp_type_name
));
...
...
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