MPI_Comm_split

Partitions the group that is associated with the specified communicator into a specified number of disjoint subgroups.

📝 Syntax

  • newcomm = MPI_Comm_split(comm, color, key)

📥 Input argument

  • comm - a MPI_Comm object.

  • color - an integer value: The new communicator that the calling process is to be assigned to. The value of color must be non-negative.

  • key - an integer value: The relative rank of the calling process in the group of the new communicator.

📤 Output argument

  • newcomm - MPI_Comm object: handle to a new communicator.

📄 Description

Partitions the group that is associated with the specified communicator into a specified number of disjoint subgroups.

💡 Example

mpiexec([modulepath('mpi'), '/examples/help_examples/MPI_Comm_split.m'], 10)

🔗 See also

MPI_Comm_rank.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?