Skip to content

Commit 9389de4

Browse files
committed
topo/treematch: fix displacements in mca_topo_treematch_dist_graph_create()
1 parent 4e19cd5 commit 9389de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2011-2015 INRIA. All rights reserved.
77
* Copyright (c) 2012-2015 Bordeaux Poytechnic Institute
88
* Copyright (c) 2015 Intel, Inc. All rights reserved
9-
* Copyright (c) 2015 Research Organization for Information Science
9+
* Copyright (c) 2015-2016 Research Organization for Information Science
1010
* and Technology (RIST). All rights reserved.
1111
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
1212
* reserved.
@@ -487,7 +487,7 @@ int mca_topo_treematch_dist_graph_create(mca_topo_base_module_t* topo_module,
487487
displs = (int *)calloc(num_objs_total,sizeof(int));
488488
displs[0] = 0;
489489
for(i = 1; i < num_nodes ; i++)
490-
displs[i] = displs[i-1] + objs_per_node[i];
490+
displs[i] = displs[i-1] + objs_per_node[i-1];
491491

492492
memset(reqs,0,(num_nodes-1)*sizeof(MPI_Request));
493493
memcpy(obj_mapping,obj_to_rank_in_comm,objs_per_node[0]*sizeof(int));

0 commit comments

Comments
 (0)