1 | MPI_Init (argc, argv) -- initialize |
2 | MPI_Comm_rank (comm, rank) -- find process label (rank) in group |
3 | MPI_Comm_size(comm, size) -- find total number of processes |
4 | MPI_Send (sndbuf,count,datatype,dest,tag,comm) -- send a message |
5 | MPI_Recv (recvbuf,count,datatype,source,tag,comm,status) -- receive a message |
6 | MPI_Finalize( ) -- End Up |