0% found this document useful (0 votes)
46 views2 pages

MPI Functions

This document provides an overview of functions for initializing and finalizing an MPI (Message Passing Interface) environment, getting the communicator size and rank, sending and receiving messages between processes, and getting the count of received elements in a message. It lists functions for initializing and finalizing MPI, getting the communicator size and a process's rank, sending data to and receiving data from other processes with optional tags, and getting the count of received elements.

Uploaded by

Parth Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views2 pages

MPI Functions

This document provides an overview of functions for initializing and finalizing an MPI (Message Passing Interface) environment, getting the communicator size and rank, sending and receiving messages between processes, and getting the count of received elements in a message. It lists functions for initializing and finalizing MPI, getting the communicator size and a process's rank, sending data to and receiving data from other processes with optional tags, and getting the count of received elements.

Uploaded by

Parth Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

int MPI Init( int* argc p /_ in/out _/, char*** argv p /_ in/out _/); int MPI Finalize(void);

Communicators, MPI Comm size and MPI Comm rank


int MPI Comm size( MPI Comm comm /_ in _/, Int* comm sz p /_ out _/); int MPI Comm rank( MPI Comm comm /_ in _/, Int* my rank p /_ out _/); int MPI Send( void* msg buf p /_ in _/, int msg size /_ in _/, MPI Datatype msg type /_ in _/, int dest /_ in _/, int tag /_ in _/, MPI Comm communicator /_ in _/);

int MPI Recv( void* msg buf p /_ out _/, int buf size /_ in _/, MPI Datatype buf type /_ in _/, int source /_ in _/, int tag /_ in _/, MPI Comm communicator /_ in _/, MPI Status_ status p /_ out _/); MPI Status status; status.MPI SOURCE status.MPI TAG MPI Get count(&status, recv type, &count) int MPI Get count( MPI Status_ status p /_ in _/, MPI Datatype type /_ in _/, Int* count p /_ out _/);

You might also like