[Mpi-forum] MPI_Comm_split_type question

Jeff Hammond jeff.science at gmail.com
Thu Dec 15 11:48:08 CST 2016


The number of output communicators from MPI_Comm_split(_type) is always
one.  Different ranks may get different outputs, but one cannot transfer a
communicator object from one rank to another.

If you want to do how many total output communicators there are, you can
perform an MPI_Allgather on the color arguments and see how many unique
values there are.

Best,

Jeff

On Thu, Dec 15, 2016 at 9:32 AM, Guillaume Mercier <
guillaume.mercier at u-bordeaux.fr> wrote:

>
>
> Hello,
>
> When using the MPI_Comm_split_type function, the number of new
> communicators created is unknown.  However this information
> could be useful to distribute data across various "domains"
> (where each domain would be represented by such a communicator).
> Is there a simple (or even a not-so-simple) way to get this
> information?
>
> Thanks.
> Guillaume Mercier
> _______________________________________________
> mpi-forum mailing list
> mpi-forum at lists.mpi-forum.org
> https://lists.mpi-forum.org/mailman/listinfo/mpi-forum
>



-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpi-forum.org/pipermail/mpi-forum/attachments/20161215/e06dcac2/attachment-0001.html>


More information about the mpi-forum mailing list