Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI users] MPI_Comm_create with unequal group arguments
From: Jens Jørgen Mortensen (jensj_at_[hidden])
Date: 2012-01-20 09:00:39


For a long time, I have been calling MPI_Comm_create(comm, group,
newcomm) with different values for group on the different processes of
comm. In pseudo-code, I would create two sub-communicators from a world
with 4 ranks like this:

if world.rank < 2:
     comm = world.create([0, 1])
     comm = world.create([2, 3])

Now I read from the MPI_Comm_create description that this way of calling
MPI_Comm_create is erroneous:

   "The call is erroneous if not all group arguments have the same value"

So, I guess I have just been lucky that it has worked for me? Or is it
OK to do what I do?

Jens Jørgen