Show Menu
Cheatography

MPI Cheat Sheet (DRAFT) by

Message Passing Interface Standard API.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

General routines

MPI_In­it(­&argc, &argv)
Initialize the
MPI_Co­mm_­ran­k(M­PI_­COM­M_W­ORLD, &rank)
Writes in _rank_
 

Synchr­onous commun­ication primitives

int MPI_Se­nd(void *buf, int count, MPI_Da­tatype datatype, int dest, int tag, MPI_Comm comm)
Issues a blocking message send from the current process to the process with rank dest.
buf points to a memory buffer with data
count is the number of elements in buf {{}}