1
1

Fixes the coll_allgather usage bug

One should use the correct module object when calling
      c_coll.coll_allgather. Otherwise there will be a segfault in the
      case, for example, when hcoll is used. In that case
      c_coll.coll_allgather = mca_coll_hcoll_allgather while
      c_coll.coll_gather_module = tuned.

Signed-off-by: Valentin Petrov <valentinp@mellanox.com>
Этот коммит содержится в:
Valentin Petrov 2017-03-14 09:40:32 +02:00
родитель 330b11c8ab
Коммит fe069c9570

Просмотреть файл

@ -881,7 +881,7 @@ static int ompi_osc_rdma_share_data (ompi_osc_rdma_module_t *module)
if (ompi_comm_size (module->local_leaders) > 1) {
ret = module->local_leaders->c_coll->coll_allgather (MPI_IN_PLACE, module->region_size, MPI_BYTE, module->node_comm_info,
module->region_size, MPI_BYTE, module->local_leaders,
module->local_leaders->c_coll->coll_gather_module);
module->local_leaders->c_coll->coll_allgather_module);
if (OMPI_SUCCESS != ret) {
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_ERROR, "leader allgather failed with ompi error code %d", ret);
break;