Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] MPI_Comm_create_group()
From: Gilles Gouaillardet (gilles.gouaillardet_at_[hidden])
Date: 2014-04-29 23:11:45


Lisandro,

i assume you are running OpenMPI 1.8

r31554 fixes this issue (and some others)
https://svn.open-mpi.org/trac/ompi/changeset/31554/branches/v1.8/ompi/communicator/comm_cid.c

the root cause was an unitialized variable (rc in
ompi/communicator/comm_cid.c), and the issue only occured when using a
communicator of size 1.

Gilles

On 2014/04/30 2:48, Dave Goodell (dgoodell) wrote:
> Thanks for the bug report. It seems that nobody has time to work on this at the moment, so I've filed a ticket so that we don't lose track of it:
>
> https://svn.open-mpi.org/trac/ompi/ticket/4577
>
> On Apr 21, 2014, at 9:55 AM, Lisandro Dalcin <dalcinl_at_[hidden]> wrote:
>
>> A very basic test for MPI_Comm_create_group() is failing for me. I'm
>> pasting the code, the failure, and output from valgrind.
>>
>> [dalcinl_at_kw2060 openmpi]$ cat comm_create_group.c
>> #include <mpi.h>
>> int main(int argc, char *argv[])
>> {
>> MPI_Group group;
>> MPI_Comm comm;
>> MPI_Init(&argc, &argv);
>> MPI_Comm_group(MPI_COMM_WORLD, &group);
>> MPI_Comm_create_group(MPI_COMM_WORLD, group, 0, &comm);
>> MPI_Comm_free(&comm);
>> MPI_Group_free(&group);
>> MPI_Finalize();
>> return 0;
>> }
>>