Skip to main content

more options


MPI Messages

MPI messages consist of two basic parts: the data being sent/received, and an envelope of information that helps to route the data. There are usually

  • three calling parameters in MPI message-passing calls that describe the data being sent/received
    (startbuf, count, datatype)
  • and another three parameters that specify the routing
    (destination/source, tag, communicator).

Example:

MPI_Send ( message, 13, MPI_CHAR, i, type, MPI_COMM_WORLD );

MPI_Recv ( message, 20, MPI_CHAR, 0, type, MPI_COMM_World, &status);

MPI messages consist of two basic parts: the data being sent/received, and an envelope of information that helps to route the data. There are usually

  • three calling parameters in MPI message-passing calls that describe the data being sent/received
    (startbuf, count, datatype)
  • and another three parameters that specify the routing
    (destination/source, tag, communicator).

Example:

MPI_Send ( message, 13, MPI_CHAR, i, type, MPI_COMM_WORLD );

MPI_Recv ( message, 20, MPI_CHAR, 0, type, MPI_COMM_World, &status);