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
Rob Latham
MPICH-BlueGene
Commits
e0e55b5d
Commit
e0e55b5d
authored
Oct 26, 2010
by
Pavan Balaji
Browse files
[svn-r7376] Bug fix: calculation of the process mapping string was incorrect in
some cases.
parent
83e35e73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pm/hydra/pm/pmiserv/pmiserv_utils.c
View file @
e0e55b5d
...
...
@@ -149,12 +149,13 @@ static HYD_status pmi_process_mapping(struct HYD_pg *pg, char **process_mapping_
node_id
=
0
;
for
(
block
=
blocklist_head
;
block
;
block
=
block
->
next
)
{
tmp
[
i
++
]
=
HYDU_strdup
(
"("
);
tmp
[
i
++
]
=
HYDU_int_to_str
(
node_id
++
);
tmp
[
i
++
]
=
HYDU_int_to_str
(
node_id
);
tmp
[
i
++
]
=
HYDU_strdup
(
","
);
tmp
[
i
++
]
=
HYDU_int_to_str
(
block
->
num_blocks
);
tmp
[
i
++
]
=
HYDU_strdup
(
","
);
tmp
[
i
++
]
=
HYDU_int_to_str
(
block
->
block_size
);
tmp
[
i
++
]
=
HYDU_strdup
(
")"
);
node_id
+=
(
block
->
num_blocks
*
block
->
block_size
);
if
(
block
->
next
)
tmp
[
i
++
]
=
HYDU_strdup
(
","
);
HYDU_STRLIST_CONSOLIDATE
(
tmp
,
i
,
status
);
...
...
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