LAM/MPI logo

MPI binding for MPI_COMM_SPLIT

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_COMM_SPLIT(comm, color, key, newcomm)
[ IN comm] communicator (handle)
[ IN color] control of subset assignment (integer)
[ IN key] control of rank assigment (integer)
[ OUT newcomm] new communicator (handle)


C Binding

int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm)

FORTRAN Binding

MPI_COMM_SPLIT(COMM, COLOR, KEY, NEWCOMM, IERROR)
INTEGER COMM, COLOR, KEY, NEWCOMM, IERROR

C++ Binding
(in the MPI:: namespace)

Intracomm Intracomm::Split(int color, int key) const