[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2-380-gd8bb1df

Service Account noreply at mpich.org
Mon Aug 15 16:11:25 CDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  d8bb1dffe13bacaaac0932d3762e62a599d4721c (commit)
      from  02dacff6281fa963809807ee7876623cf3826c77 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/d8bb1dffe13bacaaac0932d3762e62a599d4721c

commit d8bb1dffe13bacaaac0932d3762e62a599d4721c
Author: Yanfei Guo <yguo at anl.gov>
Date:   Mon Aug 15 13:07:55 2016 -0600

    fix odd even cliques for nodemap

diff --git a/src/util/nodemap/build_nodemap.h b/src/util/nodemap/build_nodemap.h
index 1c0dd82..e6c24c4 100644
--- a/src/util/nodemap/build_nodemap.h
+++ b/src/util/nodemap/build_nodemap.h
@@ -246,6 +246,7 @@ static inline int MPIR_NODEMAP_populate_ids_from_mapping(char *mapping,
     int block, block_node, node_proc;
     int i;
     int found_wrap;
+    int local_max_node_id = -1;
 
     *did_map = 1; /* reset upon failure */
 
@@ -287,10 +288,11 @@ static inline int MPIR_NODEMAP_populate_ids_from_mapping(char *mapping,
 
  break_out:
     /* identify maximum node id */
-    *max_node_id = -1;
     for (i = 0; i < sz; i++)
-        if (out_nodemap[i] + 1 > *max_node_id)
-            *max_node_id = out_nodemap[i];
+        if (out_nodemap[i] + 1 > local_max_node_id)
+            local_max_node_id = out_nodemap[i];
+
+    *max_node_id = local_max_node_id;
 
 fn_exit:
     MPL_free(mb);

-----------------------------------------------------------------------

Summary of changes:
 src/util/nodemap/build_nodemap.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list