Message Passing Interface - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Message Passing Interface

Description:

Suite of specialized collective communication functions. barrier synchronizes all process ... scatter scatters data from one process to all processes ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 13
Provided by: supercom
Category:

less

Transcript and Presenter's Notes

Title: Message Passing Interface


1
Message Passing Interface
  • ???

2
MPI is
  • An interface for parallel computing programming
  • Not programming paradigm
  • Language Independent
  • Multi Process Multi Data

3
MPI - non deterministic(default)
  • The arrival order of messages is not defined
  • responsibility of programmer
  • to ensure the order of messages

4
MPI - global operation
  • Suite of specialized collective communication
    functions
  • barrier synchronizes all process
  • broadcast sends data from one process to all
    processes
  • gather gathers data from all process to one
    processes
  • scatter scatters data from one process to all
    processes
  • reduction operations sums, multiplies, etc.,
    distributed data

5
MPI - barrier
  • Synchronize execution of a group of processes
  • ? MPI_BARRIER
  • Barrier is a simple way of separating two phases

6
MPI - data movement
  • Collective data movement routines
  • ? MPI_BCAST, MPI_GATHERM, MPI_SCATTER

7
MPI - reduction operation
  • Reduction operation
  • ? MPI_REDUCE, MPI_ALLREDUCE

8
MPI - asynchronous communication
  • When a computation must access elecments of a
    shared data structure in an unstructed manner,
  • There must be asynchronous communication

9
MPI - modularity
10
MPI - other features
  • derived datatypes
  • allowing noncontiguous data elements to be
    grouped together in a message
  • Construct function ? MPI_TYPE_CONTIGUOUS,
    MPI_TYPE_VECTOR, MPI_TYPE_INDEXED
  • Commit function ? MPI_TYPE_COMMIT
  • Free function ? MPI_TYPE_FREE
  • Heterogeneous type
  • - different datatypes can be encapsulated in a
    single derived type

11
MPI - other features
  • Environmental inquiry
  • - a program can obtain information about the
    environment in which it is running, information
    that can be used to tune algorithm performance
  • Additional global operations
  • - Operations supporting all-to-all communication,
    variable-sized contributions, reduction
    operations, etc.

12
MPI - other features
  • Specialized communication modes
  • Blocking sender to synchronous communication with
    receiver
  • Buffered communications
Write a Comment
User Comments (0)
About PowerShow.com