Commit e0e55b5d authored by Pavan Balaji's avatar Pavan Balaji
Browse files

[svn-r7376] Bug fix: calculation of the process mapping string was incorrect in

some cases.
parent 83e35e73
...@@ -149,12 +149,13 @@ static HYD_status pmi_process_mapping(struct HYD_pg *pg, char **process_mapping_ ...@@ -149,12 +149,13 @@ static HYD_status pmi_process_mapping(struct HYD_pg *pg, char **process_mapping_
node_id = 0; node_id = 0;
for (block = blocklist_head; block; block = block->next) { for (block = blocklist_head; block; block = block->next) {
tmp[i++] = HYDU_strdup("("); 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_strdup(",");
tmp[i++] = HYDU_int_to_str(block->num_blocks); tmp[i++] = HYDU_int_to_str(block->num_blocks);
tmp[i++] = HYDU_strdup(","); tmp[i++] = HYDU_strdup(",");
tmp[i++] = HYDU_int_to_str(block->block_size); tmp[i++] = HYDU_int_to_str(block->block_size);
tmp[i++] = HYDU_strdup(")"); tmp[i++] = HYDU_strdup(")");
node_id += (block->num_blocks * block->block_size);
if (block->next) if (block->next)
tmp[i++] = HYDU_strdup(","); tmp[i++] = HYDU_strdup(",");
HYDU_STRLIST_CONSOLIDATE(tmp, i, status); HYDU_STRLIST_CONSOLIDATE(tmp, i, status);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment