Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
453a5268
Commit
453a5268
authored
Jan 20, 2014
by
Jonathan Jenkins
Browse files
debug lp,kp,pe mapping in codes-mapping
parent
eac6ca65
Changes
1
Hide whitespace changes
Inline
Side-by-side
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