MPI Point to Point Communication


Pada bagian ini akan dipelajari beberapa sebagai berikut:

MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest,int tag, MPI_Comm comm)

MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status)

Parameter:

  • Buf –> Initial address of send buffer (choice)
  • Count –> Number of elements send (nonnegative integer)
  • Datatype –> Datatype of each send buffer element (handle)
  • Dest –> Rank of destination (integer)
  • Tag –> Message tag (integer)
  • Comm –> Communicator (handle)

Contoh:

 

Referensi:

  • http://mpitutorial.com/
  • https://www.open-mpi.org/
  • https://cvw.cac.cornell.edu/MPIcc/broadcast
  • https://computing.llnl.gov/tutorials/mpi/
,

Leave a Reply