From fb6ecdfd1876dda42330948295ec019ea7edcdee Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 24 Nov 2014 01:48:09 -0500 Subject: [PATCH] Fix few typos. --- ompi/mca/topo/base/topo_base_dist_graph_create.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ompi/mca/topo/base/topo_base_dist_graph_create.c b/ompi/mca/topo/base/topo_base_dist_graph_create.c index a51751f138..43adf1ab04 100644 --- a/ompi/mca/topo/base/topo_base_dist_graph_create.c +++ b/ompi/mca/topo/base/topo_base_dist_graph_create.c @@ -54,7 +54,7 @@ int mca_topo_base_dist_graph_distribute(mca_topo_base_module_t* module, * In addition we compute 3 arrays (that are allocated in one go): * - cnt: the number of elements for a peer * - pos: the position of the first element for a peer - * - idx: temporaru indexes and message count after the reduce. + * - idx: temporary indexes and message count after the reduce. */ cnt = (mca_topo_base_dist_graph_elem_t*)calloc(3 * csize, sizeof(mca_topo_base_dist_graph_elem_t)); if( NULL == cnt ) { @@ -118,8 +118,8 @@ int mca_topo_base_dist_graph_distribute(mca_topo_base_module_t* module, comm->c_coll.coll_allreduce_module); /** * At this point in the indexes array we have: - * - indexes[0] total number of in edges - * - indexes[1] total number of out edges + * - idx[0].in total number of IN edges + * - idx[0].out total number of OUT edges */ topo = OBJ_NEW(mca_topo_base_comm_dist_graph_2_2_0_t); if( NULL == topo ) { @@ -134,7 +134,7 @@ int mca_topo_base_dist_graph_distribute(mca_topo_base_module_t* module, if (NULL == topo->in) { err = OMPI_ERR_OUT_OF_RESOURCE; goto bail_out; - } + } if (MPI_UNWEIGHTED != weights) { topo->inw = (int*)malloc(sizeof(int) * topo->indegree); if (NULL == topo->inw) { @@ -148,7 +148,7 @@ int mca_topo_base_dist_graph_distribute(mca_topo_base_module_t* module, if (NULL == topo->out) { err = OMPI_ERR_OUT_OF_RESOURCE; goto bail_out; - } + } if (MPI_UNWEIGHTED != weights) { topo->outw = (int*)malloc(sizeof(int) * topo->outdegree); if (NULL == topo->outw) {