Message Passing Interface

Size: px
Start display at page:

Download "Message Passing Interface"

Transcription

1 Message Passing Interface by Kuan Lu Scientific researcher at Georg-August-Universität Göttingen and Gesellschaft für wissenschaftliche Datenverarbeitung mbh Göttingen Am Faßberg, Göttingen, Germany Phone: (+49) Fax: (+49)

2 Literature Patterns for Parallel Programming : by Mattson, Sanders, Massingill Parallel Programming / Parallele Programmierung : by Rauber, Rünger Parallel Programming : by Peter S. Pacheco 2

3 Overview Shared Memory vs. Distributed Memory - System-Architecture MPI Message Passing Interface - What is MPI? - The Message-Passing Model - Basis of MPI Program with Example - MPI Communication Modes - Point-to-Point Communication Mode - Collective Communication Mode - Others Summary 3

4 System-Architecture Distributed memory Shared memory P0 Pn-1 P0 Pn-1 M0 Network Mn-1 Memory + high scalability complicated programming MPI + simple programming low scalability OpenMP 4

5 What is MPI? MPI stands for Message Passing Interface Standardized message passing interface specification No special hardware required, rather in OS level. Supports various programming languages (C/C++, Fortran-77/-95, Java) Frontend (API) is same, Backend (Library) different Different distributions Gaining the optimization of corresponding hardware E.g., MPICH, MVARPICH, LAM/MPI, SCAMPI, OpenMPI 5

6 What is MPI? Computer C compiler OpenMP MPI OpenMP library is part of C compiler. On the contrary, MPI library has to be installed into C explicitly. 6

7 What is MPI? MPICH1 MPICH1 MPICH1 MPICH1 MPICH2 MPICH1 MPICH2 MPICH1 MPICH2 Dynamical MPICH1 MPICH2 MPICH2 Dynamical Process I/O Process Dynamical MPICH1 parallel I/O Process Dynamical MPICH1 parallel I/O Process Dynamical parallel I/O Process parallel I/O parallel First Version Second Version 7

8 The Message-Passing Model Process = program counter + address space Message Passing = Communication among processes with separate memory space Core aspects - Data exchanging - Synchronization Distributed memory P0 Pn-1 M0 Mn-1 Network 8

9 The Message-Passing Model In MPI, each of the processes could execute - its own program (Multiple Program Multiple Data) - the same program (Single Program Multiple Data) By rank, each process can execute different parts of the program. For instance, starting node does some initializing work. No restriction for process number in MPI, but depending on the number of processors, which is changing annually. Usually each processor is corresponding to one process. 9

10 Basis of MPI Program All identifiers defined by MPI start with MPI_XXX. MPI_Init(int *argc, char*** argv) - Setup of MPI system, Communicator - Allocate storage for message buffers - Decide which process gets which rank MPI_Finalize(void) - MPI program is finished - Free all MPI related resources - No MPI functions should be called after it! 10

11 Basis of MPI Program MPI_COMM_WORLD - Default communicator in MPI, a group of processes - Additional communicator can be created MPI_Comm_size(MPI_Comm comm, int* size) - Retrieve the number of process of given communicator - e.g., MPI_Comm_size(MPI_COMM_WORLD, &size) MPI_Comm_rank(MPI_Comm comm, int* rank) - Retrieve the rank of current process - 0 rank size-1 11

12 SPMD Example in C #include mpi.h" #include <stdio.h> int main( int argc, char *argv[] ) { int rank, size; MPI_Init( &argc, &argv ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); MPI_Comm_size( MPI_COMM_WORLD, &size ); printf( "I am %d of %d\n", rank, size ); MPI_Finalize(); return 0; } 12

13 MPMD Example in C #include mpi.h #include <stdio.h> int main( int argc, char *argv[] ) { int rank, size; MPI_Init( &argc, &argv ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); MPI_Comm_size( MPI_COMM_WORLD, &size ); if (rank == 0) printf("i am the master!\n"); else printf("worker with rank %d\n", rank); MPI_Finalize(); return 0; } 13

14 Compilation and Execution of MPI Program Compilation of MPI program uses mpicc wrapper script Execution of MPI program uses mpirun or mpiexec wrapper scripts, depending on the system Examples: mpicc -o HelloWorld.out helloworld.c mpirun n 8./HelloWorld.out mpiexec n 8./HelloWorld.out 14

15 Execution of MPI in PBS Environment Compilation of MPI program uses mpicc wrapper script Create a shell script, e.g., helloworld.sh, with the following content: #PBS N mpi\_hello #PBS l nodes=8 /usr/bin/mpiexec /var/local/torque/pbsuser7/mpi\_rings/helloworld.out Submit the script to the PBS Cluster with pbsuserx, for instance as following: qsub helloworld.sh 15

16 Semantic Terms in MPI Local sending and receiving buffers - The local buffers that store the send and receive messages System buffer - MPI system decides whether system buffer is used or not - Program should also work, when no system buffer is used 16

17 Blocking and Non-blocking Operations Blocking: The return of the operation on a process ensures that the local resources (buffers) can be reused Non-Blocking: The operation on a process returns without guarantee that the local resources (buffers) can be reused Describe of operations from the local view of the process 17

18 Synchronous and Asynchronous Communications Synchronous communication: both send and receive operations in two processes should start synchronously Asynchronous communication: both send and receive operations can start asynchronously Describe of operations from the global view between the processes 18

19 Combination Blocking Non-blocking Synchronous Asynchronous MPI_Ssend() MPI_Recv()! MPI_Send() MPI_Recv() MPI_Isend() MPI_Irecv() 19

20 MPI Communication Modes Point-to-Point (P2P) Communication Mode - Functions such as MPI_Send()and MPI_Recv() Collective Communication Mode - Communication functions that involve all the processes in a communicator - Abstracted functions that cover MPI_Send()and MPI_Recv()inside, more safe - Always blocking, no tag is used 20

21 P2P Send and Receive Operations Basic Pattern Process 0 Process 1 Send(data) Receive(data) Open questions: - How to define the data? - How to receive the data? - How are the processes identified? - When are the operations finished? 21

22 MPI (Blocking) Send MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) Message(buf, count, datatype) Receiver (rank) dest tag can be used by the receiver to distinguish different messages from the same sender Returns, when the message is passed to the system: Buffer can be reused again (filled with new message) It is however not necessary that receiver must start receiving operation Example MPI_Send(&message, 1, MPI_DOUBLE, rank, 1, MPI_COMM_WORLD) 22

23 Predefined MPI Data Types MPI_CHAR MPI_SHORT MPI_INT MPI_LONG MPI_LONG_LONG MPI_UNSIGNED_CHAR MPI_UNSIGNED_SHORT MPI_UNSIGNED MPI_UNSIGNED_LONG MPI_FLOAT MPI_DOUBLE MPI_LONG_DOUBLE MPI_BYTE MPI_PACKED Signed char Signed short int Signed int Signed long int Signed long long int Unsigned char Unsigned short int Unsigned int Unsigned long int float double long double

24 MPI (Blocking) Receive MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status) Message(buf, count, datatype) Returns, when receive buffer completely contains the message (source and tag) - Buffer can be reused again (reading the message) source is sender or wildcard MPI_ANY_SOURCE tag is Tag or wildcard MPI_ANY_TAG count can be smaller than the message (not greater à Error) status Information about the received message. E.g., the size information, rank of sending process Example MPI_Recv(&message,1,MPI_DOUBLE,rank,1,MPI_COMM_WORLD,&status) 24

25 P2P Send and Receive Operations Both standard methods are blocking and asynchronous They are P2P communications MPI_Recv returns, when data buffer completely contains the message MPI_Send is blocked until the message is received completed by system buffer or receiver 25

26 P2P MPI is simple 6 basic functions can handle many parallel programs - int MPI_Init(int *argc, char **argv) - int MPI_Comm_size(MPI_Comm comm, int *size) - int MPI_Comm_rank(MPI_Comm comm, int *rank) - int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) - int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status) - int MPI_Finalize(void) 26

27 P2P Send and Receive Operations For P2P MPI, the simpler, the more complicated. High frequent problem in P2P: Deadlock! 27

28 Example: Deadlock (Always!!) #include mpi.h #include <stdio.h> P1 int main(int argc, char **argv) { int me, np, q, sendto; MPI_Status status; MPI_Init(&argc, &argv); P0 P2 MPI_Comm_size(MPI_COMM_WORLD, &np); MPI_Comm_rank(MPI_COMM_WORLD, &me); P3 if (np%2==1) return 0; // should be send/recv pair! if (me%2==1) {sendto = me-1;} // the previous neighbor is receiver. else {sendto = me+1;} // the next neighbor is receiver MPI_Recv(&q, 1, MPI_INT, sendto, sendto, MPI_COMM_WORLD, &status); MPI_Send(&me, 1, MPI_INT, sendto, me, MPI_COMM_WORLD); printf( Sent %d to proc %d, received %d from proc %d\n, me, sendto, q, sendto); MPI_Finalize(); return 0; } 28

29 Why? Deadlock (Always) - Because of blocking operation of MPI_Recv() - All processes wait for the corresponding MPI_Send() 29

30 Example: Deadlock (Sometimes) #include mpi.h P1 #include <stdio.h> int main(int argc, char **argv) { int me, np, q, sendto; P0 MPI_Status status; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &np); P3 MPI_Comm_rank(MPI_COMM_WORLD, &me); if (np%2==1) return 0; if (me%2==1) {sendto = me-1;} else {sendto = me+1;} MPI_Send(&me, 1, MPI_INT, sendto, me, MPI_COMM_WORLD); MPI_Recv(&q, 1, MPI_INT, sendto, sendto, MPI_COMM_WORLD, &status); printf( Sent %d to proc %d, received %d from proc %d\n, me, sendto, q, sendto); MPI_Finalize(); return 0; } P2 30

31 Why? Deadlock (Sometimes) - Because of blocking operation of MPI_Send(), which depends on the available space of system buffer - Unsafe - Deadlock? When using MPI_Ssend()? - Using MPI_Ssend() for testing 31

32 Example: Deadlock (Never) #include mpi.h #include <stdio.h> P1 int main(int argc, char **argv) { int me, np, q, sendto; MPI_Status status; MPI_Init(&argc, &argv); P0 MPI_Comm_size(MPI_COMM_WORLD, &np); MPI_Comm_rank(MPI_COMM_WORLD, &me); if (np%2==1) return 0; P3 if (me%2==1) {sendto = me-1;} else {sendto = me+1;} if (me%2 == 0) { MPI_Send(&me, 1, MPI_INT, sendto, me, MPI_COMM_WORLD); MPI_Recv(&q, 1, MPI_INT, sendto, sendto, MPI_COMM_WORLD, &status); } else { MPI_Recv(&q, 1, MPI_INT, sendto, sendto, MPI_COMM_WORLD, &status); MPI_Send(&me, 1, MPI_INT, sendto, me, MPI_COMM_WORLD); } printf( Sent %d to proc %d, received %d from proc %d\n, me, sendto, q, sendto); MPI_Finalize(); return 0; } P2 32

33 Why? Solution - put MPI_Send and MPI_Recv in pairs 33

34 System Buffer Process 0 Process 1 User data Send buffer System buffer Receive buffer Using blocking MPI_Send, MPI_Send is blocked until the message is received completed by system buffer User data 34

35 Avoid System Buffer Process 0 Process 1 User data Send buffer Receive buffer Using blocking MPI_Send, MPI_Send is blocked until the message is received completed by receiver User data 35

36 MPI Non-Blocking Operations Return immediately after calling Handling test and wait MPI_Isend(start, count, datatype, dest, tag, comm, request) MPI_Irecv(start, count, datatype, dest, tag, comm, request) MPI_Wait(&request, &status) Test without wait MPI_Test(&request, &flag, &status) 36

37 More Operations MPI_Waitall(count, array_of_requests, array_of_statuses) MPI_Waitany(count, array_of_requests, &index, &status) MPI_Waitsome(count, array_of_requests, array_of indices, array_of_statuses) 37

38 Collective Communication in MPI The communication of all the processes in a group MPI Collective Functions MPI_Bcast() MPI_Reduce() MPI_Gather() MPI_Scatter() MPI_Allgather() MPI_Alltoall() Remarks Broadcast operations Accumulation operations Gather operations Scatter operations Multi-broadcast operation Total exchange 38

39 Collective Communication in MPI Broadcast In many cases, one processor needs to send (broadcast) some data (either a scalar or vector) to all the processes in a group. MPI provides the broadcast primitive MPI_BCAST to accomplish this task. The syntax of the MPI_BCAST is given by C int MPI_Bcast (void* send_buffer, int count, MPI_Datatype datatype, int src_process, MPI_Comm comm) 39

40 Broadcast P0 P1 A Broadcast A A P2 A P3 A 40

41 Collective Communication in MPI Scatter The root process sends the contents of its send buffer by average to each process. The syntax of the MPI_Scatter is given by C int MPI_Scatter (void* send_buffer, int send_count, MPI_Datatype send_datatype, void* receive_buffer, int receive_count, MPI_Datatype receive_datatype, int src_process, MPI_Comm comm) 41

42 Collective Communication in MPI Gather, reverse of Scatter operation Each process sends the contents of its send buffer to the root process. Then the root process receives the messages and stores them in rank order. The syntax of the MPI_Gather is given by C int MPI_Gather (void* send_buffer, int send_count, MPI_Datatype send_datatype, void* receive_buffer, int receive_count, MPI_Datatype receive_datatype, int dest_process, MPI_Comm comm) 42

43 Scatter, Gather P0 P1 P2 P3 A B C D Scatter Gather A B C D 43

44 Collective Communication in MPI Allgather Same as Gather, except that all processes, not just root, receive the result. The syntax of the MPI_Allgather is given by C int MPI_Allgather (void* send_buffer, int send_count, MPI_Datatype send_datatype, void* receive_buffer, int receive_count, MPI_Datatype receive_datatype, MPI_Comm comm) 44

45 Allgather P0 P1 A B Allgather A B C D A B C D P2 C A B C D P3 D A B C D 45

46 Collective Communication in MPI Alltoall Extension to Allgather Each process sends distinct data to each receiver. Process i sends its jth block of data to process j Process j stores data from process i in ith block The syntax of the MPI_Alltoall is given by C int MPI_Alltoall (void* send_buffer, int send_count, MPI_Datatype send_datatype, void* receive_buffer, int receive_count, MPI_Datatype receive_datatype, MPI_Comm comm) 46

47 Alltoall P0 P1 P2 P3 A0 A1 A2 A3 B0 B1 B2 B3 C0 C1 C2 C3 D0 D1 D2 D3 Alltoall A0 B0 C0 D0 A1 B1 C1 D1 A2 B2 C2 D2 A3 B3 C3 D3 47

48 Collective Communication in MPI Reduce (Misleading) Combine the data of the input buffer of each process using binary reduction operation. Then return result to root process The syntax of the MPI_Reduce is given by C int MPI_Reduce (void* send_buffer, void* receive_buffer, int count, MPI_Datatype send_datatype, MPI_Op op, int send_src, MPI_Comm comm) 48

49 MPI Built-in Operations (Reduce) MPI_Max MPI_Min MPI_Prod MPI_Sum MPI_Land MPI_Lor MPI_Lxor MPI_Band MPI_Bor MPI_Bxor MPI_Maxloc MPI_Minloc Maximum Minimum Product Sum Logical and Logical or Logical exclusive or Binary and Binary or Binary exclusive or Maximum and its location Minimum and its location 49

50 Reduce P0 P1 A B Reduce ABCD P2 C P3 D 50

51 Example: π in C (Part 1) #include "mpi.h" #include <math.h> int main(int argc, char *argv[]) { int done = 0, n, myid, numprocs, i, rc; double PI25DT = ; double mypi, pi, h, sum, x, a; MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&numprocs); MPI_Comm_rank(MPI_COMM_WORLD,&myid); while (!done) { if (myid == 0) { printf("enter the number of intervals: (0 quits) "); scanf("%d",&n); } MPI_Bcast(&n, 1, MPI_INT, 0, MPI_COMM_WORLD); if (n == 0) break; 51

52 Example: π in C (Part 2) } h = 1.0 / (double) n; sum = 0.0; for (i = myid + 1; i <= n; i += numprocs) { x = h * ((double)i - 0.5); sum += 4.0 / (1.0 + x*x); } mypi = h * sum; MPI_Reduce(&mypi, &pi, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD); if (myid == 0) printf("pi is approximately %.16f, Error is.16f\n", pi, fabs(pi - PI25DT)); } MPI_Finalize(); return 0; 52

53 Summary Programing model for Distributed Memory System - Message exchange - Blocking / Non-blocking operations - P2P, Collective communication modes - Avoid deadlock - (A)synchronization communications Distributed memory P0 Pn-1 M0 Mn-1 Network 53

54 Exercises Definition and programming. Exercises for Assignment 10: (1) (morning + afternoon) (2) Deadline: Exercises for Assignment 11: (1) afternoon, (morning + afternoon), afternoon (2) Deadline:

55 Thank you very much!

56 The presentations includes figures, trademarks, logos which are properties of third parties. Rights are reserved to the corresponding rights owners.

MPI. (message passing, MIMD)

MPI. (message passing, MIMD) MPI (message passing, MIMD) What is MPI? a message-passing library specification extension of C/C++ (and Fortran) message passing for distributed memory parallel programming Features of MPI Point-to-point

More information

Parallel Programming. Using MPI (Message Passing Interface)

Parallel Programming. Using MPI (Message Passing Interface) Parallel Programming Using MPI (Message Passing Interface) Message Passing Model Simple implementation of the task/channel model Task Process Channel Message Suitable for a multicomputer Number of processes

More information

Slides prepared by : Farzana Rahman 1

Slides prepared by : Farzana Rahman 1 Introduction to MPI 1 Background on MPI MPI - Message Passing Interface Library standard defined by a committee of vendors, implementers, and parallel programmers Used to create parallel programs based

More information

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI CS 470 Spring 2018 Mike Lam, Professor Distributed Programming & MPI MPI paradigm Single program, multiple data (SPMD) One program, multiple processes (ranks) Processes communicate via messages An MPI

More information

The Message Passing Model

The Message Passing Model Introduction to MPI The Message Passing Model Applications that do not share a global address space need a Message Passing Framework. An application passes messages among processes in order to perform

More information

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI CS 470 Spring 2017 Mike Lam, Professor Distributed Programming & MPI MPI paradigm Single program, multiple data (SPMD) One program, multiple processes (ranks) Processes communicate via messages An MPI

More information

Practical Scientific Computing: Performanceoptimized

Practical Scientific Computing: Performanceoptimized Practical Scientific Computing: Performanceoptimized Programming Programming with MPI November 29, 2006 Dr. Ralf-Peter Mundani Department of Computer Science Chair V Technische Universität München, Germany

More information

Collective Communication in MPI and Advanced Features

Collective Communication in MPI and Advanced Features Collective Communication in MPI and Advanced Features Pacheco s book. Chapter 3 T. Yang, CS240A. Part of slides from the text book, CS267 K. Yelick from UC Berkeley and B. Gropp, ANL Outline Collective

More information

Message Passing Interface. most of the slides taken from Hanjun Kim

Message Passing Interface. most of the slides taken from Hanjun Kim Message Passing Interface most of the slides taken from Hanjun Kim Message Passing Pros Scalable, Flexible Cons Someone says it s more difficult than DSM MPI (Message Passing Interface) A standard message

More information

Distributed Systems + Middleware Advanced Message Passing with MPI

Distributed Systems + Middleware Advanced Message Passing with MPI Distributed Systems + Middleware Advanced Message Passing with MPI Gianpaolo Cugola Dipartimento di Elettronica e Informazione Politecnico, Italy cugola@elet.polimi.it http://home.dei.polimi.it/cugola

More information

IPM Workshop on High Performance Computing (HPC08) IPM School of Physics Workshop on High Perfomance Computing/HPC08

IPM Workshop on High Performance Computing (HPC08) IPM School of Physics Workshop on High Perfomance Computing/HPC08 IPM School of Physics Workshop on High Perfomance Computing/HPC08 16-21 February 2008 MPI tutorial Luca Heltai Stefano Cozzini Democritos/INFM + SISSA 1 When

More information

Scientific Computing

Scientific Computing Lecture on Scientific Computing Dr. Kersten Schmidt Lecture 21 Technische Universität Berlin Institut für Mathematik Wintersemester 2014/2015 Syllabus Linear Regression, Fast Fourier transform Modelling

More information

Outline. Communication modes MPI Message Passing Interface Standard. Khoa Coâng Ngheä Thoâng Tin Ñaïi Hoïc Baùch Khoa Tp.HCM

Outline. Communication modes MPI Message Passing Interface Standard. Khoa Coâng Ngheä Thoâng Tin Ñaïi Hoïc Baùch Khoa Tp.HCM THOAI NAM Outline Communication modes MPI Message Passing Interface Standard TERMs (1) Blocking If return from the procedure indicates the user is allowed to reuse resources specified in the call Non-blocking

More information

Outline. Communication modes MPI Message Passing Interface Standard

Outline. Communication modes MPI Message Passing Interface Standard MPI THOAI NAM Outline Communication modes MPI Message Passing Interface Standard TERMs (1) Blocking If return from the procedure indicates the user is allowed to reuse resources specified in the call Non-blocking

More information

Parallel Programming in C with MPI and OpenMP

Parallel Programming in C with MPI and OpenMP Parallel Programming in C with MPI and OpenMP Michael J. Quinn Chapter 4 Message-Passing Programming Learning Objectives n Understanding how MPI programs execute n Familiarity with fundamental MPI functions

More information

Lecture 4 Introduction to MPI

Lecture 4 Introduction to MPI CS075 1896 Lecture 4 Introduction to MPI Jeremy Wei Center for HPC, SJTU Mar 13th, 2017 1920 1987 2006 Recap of the last lecture (OpenMP) OpenMP is a standardized pragma-based intra-node parallel programming

More information

Introduction to Parallel Programming

Introduction to Parallel Programming University of Nizhni Novgorod Faculty of Computational Mathematics & Cybernetics Section 4. Part 1. Introduction to Parallel Programming Parallel Programming with MPI Gergel V.P., Professor, D.Sc., Software

More information

Message Passing Interface

Message Passing Interface Message Passing Interface DPHPC15 TA: Salvatore Di Girolamo DSM (Distributed Shared Memory) Message Passing MPI (Message Passing Interface) A message passing specification implemented

More information

Recap of Parallelism & MPI

Recap of Parallelism & MPI Recap of Parallelism & MPI Chris Brady Heather Ratcliffe The Angry Penguin, used under creative commons licence from Swantje Hess and Jannis Pohlmann. Warwick RSE 13/12/2017 Parallel programming Break

More information

An Introduction to MPI

An Introduction to MPI An Introduction to MPI Parallel Programming with the Message Passing Interface William Gropp Ewing Lusk Argonne National Laboratory 1 Outline Background The message-passing model Origins of MPI and current

More information

MPI Message Passing Interface

MPI Message Passing Interface MPI Message Passing Interface Portable Parallel Programs Parallel Computing A problem is broken down into tasks, performed by separate workers or processes Processes interact by exchanging information

More information

Parallel Programming in C with MPI and OpenMP

Parallel Programming in C with MPI and OpenMP Parallel Programming in C with MPI and OpenMP Michael J. Quinn Chapter 4 Message-Passing Programming Learning Objectives Understanding how MPI programs execute Familiarity with fundamental MPI functions

More information

Message Passing Interface

Message Passing Interface MPSoC Architectures MPI Alberto Bosio, Associate Professor UM Microelectronic Departement bosio@lirmm.fr Message Passing Interface API for distributed-memory programming parallel code that runs across

More information

CSE 613: Parallel Programming. Lecture 21 ( The Message Passing Interface )

CSE 613: Parallel Programming. Lecture 21 ( The Message Passing Interface ) CSE 613: Parallel Programming Lecture 21 ( The Message Passing Interface ) Jesmin Jahan Tithi Department of Computer Science SUNY Stony Brook Fall 2013 ( Slides from Rezaul A. Chowdhury ) Principles of

More information

CS 426. Building and Running a Parallel Application

CS 426. Building and Running a Parallel Application CS 426 Building and Running a Parallel Application 1 Task/Channel Model Design Efficient Parallel Programs (or Algorithms) Mainly for distributed memory systems (e.g. Clusters) Break Parallel Computations

More information

Programming Using the Message Passing Paradigm

Programming Using the Message Passing Paradigm Programming Using the Message Passing Paradigm Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar To accompany the text ``Introduction to Parallel Computing'', Addison Wesley, 2003. Topic Overview

More information

Practical Introduction to Message-Passing Interface (MPI)

Practical Introduction to Message-Passing Interface (MPI) 1 Practical Introduction to Message-Passing Interface (MPI) October 1st, 2015 By: Pier-Luc St-Onge Partners and Sponsors 2 Setup for the workshop 1. Get a user ID and password paper (provided in class):

More information

Introduction to Parallel Programming with MPI

Introduction to Parallel Programming with MPI Introduction to Parallel Programming with MPI Slides are available at http://www.mcs.anl.gov/~balaji/tmp/csdms-mpi-basic.pdf Pavan Balaji Argonne National Laboratory balaji@mcs.anl.gov http://www.mcs.anl.gov/~balaji

More information

Parallel Computing Paradigms

Parallel Computing Paradigms Parallel Computing Paradigms Message Passing João Luís Ferreira Sobral Departamento do Informática Universidade do Minho 31 October 2017 Communication paradigms for distributed memory Message passing is

More information

Introduction in Parallel Programming - MPI Part I

Introduction in Parallel Programming - MPI Part I Introduction in Parallel Programming - MPI Part I Instructor: Michela Taufer WS2004/2005 Source of these Slides Books: Parallel Programming with MPI by Peter Pacheco (Paperback) Parallel Programming in

More information

Distributed Memory Parallel Programming

Distributed Memory Parallel Programming COSC Big Data Analytics Parallel Programming using MPI Edgar Gabriel Spring 201 Distributed Memory Parallel Programming Vast majority of clusters are homogeneous Necessitated by the complexity of maintaining

More information

HPC Parallel Programing Multi-node Computation with MPI - I

HPC Parallel Programing Multi-node Computation with MPI - I HPC Parallel Programing Multi-node Computation with MPI - I Parallelization and Optimization Group TATA Consultancy Services, Sahyadri Park Pune, India TCS all rights reserved April 29, 2013 Copyright

More information

MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session

MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session S. DI GIROLAMO [DIGIROLS@INF.ETHZ.CH] MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session Slides credits: Pavan Balaji, Torsten Hoefler https://htor.inf.ethz.ch/teaching/mpi_tutorials/ppopp13/2013-02-24-ppopp-mpi-basic.pdf

More information

MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session

MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session S. DI GIROLAMO [DIGIROLS@INF.ETHZ.CH] MPI Tutorial Part 1 Design of Parallel and High-Performance Computing Recitation Session Slides credits: Pavan Balaji, Torsten Hoefler https://htor.inf.ethz.ch/teaching/mpi_tutorials/ppopp13/2013-02-24-ppopp-mpi-basic.pdf

More information

Experiencing Cluster Computing Message Passing Interface

Experiencing Cluster Computing Message Passing Interface Experiencing Cluster Computing Message Passing Interface Class 6 Message Passing Paradigm The Underlying Principle A parallel program consists of p processes with different address spaces. Communication

More information

Introduction to MPI. HY555 Parallel Systems and Grids Fall 2003

Introduction to MPI. HY555 Parallel Systems and Grids Fall 2003 Introduction to MPI HY555 Parallel Systems and Grids Fall 2003 Outline MPI layout Sending and receiving messages Collective communication Datatypes An example Compiling and running Typical layout of an

More information

Parallel Programming Using MPI

Parallel Programming Using MPI Parallel Programming Using MPI Short Course on HPC 15th February 2019 Aditya Krishna Swamy adityaks@iisc.ac.in SERC, Indian Institute of Science When Parallel Computing Helps? Want to speed up your calculation

More information

Introduction to the Message Passing Interface (MPI)

Introduction to the Message Passing Interface (MPI) Introduction to the Message Passing Interface (MPI) CPS343 Parallel and High Performance Computing Spring 2018 CPS343 (Parallel and HPC) Introduction to the Message Passing Interface (MPI) Spring 2018

More information

Capstone Project. Project: Middleware for Cluster Computing

Capstone Project. Project: Middleware for Cluster Computing Capstone Project Project: Middleware for Cluster Computing Middleware is computer software that connects software components or applications. The software consists of a set of enabling services that allow

More information

Lesson 1. MPI runs on distributed memory systems, shared memory systems, or hybrid systems.

Lesson 1. MPI runs on distributed memory systems, shared memory systems, or hybrid systems. The goals of this lesson are: understanding the MPI programming model managing the MPI environment handling errors point-to-point communication 1. The MPI Environment Lesson 1 MPI (Message Passing Interface)

More information

MPI: Parallel Programming for Extreme Machines. Si Hammond, High Performance Systems Group

MPI: Parallel Programming for Extreme Machines. Si Hammond, High Performance Systems Group MPI: Parallel Programming for Extreme Machines Si Hammond, High Performance Systems Group Quick Introduction Si Hammond, (sdh@dcs.warwick.ac.uk) WPRF/PhD Research student, High Performance Systems Group,

More information

CS 179: GPU Programming. Lecture 14: Inter-process Communication

CS 179: GPU Programming. Lecture 14: Inter-process Communication CS 179: GPU Programming Lecture 14: Inter-process Communication The Problem What if we want to use GPUs across a distributed system? GPU cluster, CSIRO Distributed System A collection of computers Each

More information

Parallel Programming with MPI: Day 1

Parallel Programming with MPI: Day 1 Parallel Programming with MPI: Day 1 Science & Technology Support High Performance Computing Ohio Supercomputer Center 1224 Kinnear Road Columbus, OH 43212-1163 1 Table of Contents Brief History of MPI

More information

Outline. CSC 447: Parallel Programming for Multi-Core and Cluster Systems 2

Outline. CSC 447: Parallel Programming for Multi-Core and Cluster Systems 2 CSC 447: Parallel Programming for Multi-Core and Cluster Systems Message Passing with MPI Instructor: Haidar M. Harmanani Outline Message-passing model Message Passing Interface (MPI) Coding MPI programs

More information

MPI MESSAGE PASSING INTERFACE

MPI MESSAGE PASSING INTERFACE MPI MESSAGE PASSING INTERFACE David COLIGNON, ULiège CÉCI - Consortium des Équipements de Calcul Intensif http://www.ceci-hpc.be Outline Introduction From serial source code to parallel execution MPI functions

More information

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI

CS 470 Spring Mike Lam, Professor. Distributed Programming & MPI CS 470 Spring 2019 Mike Lam, Professor Distributed Programming & MPI MPI paradigm Single program, multiple data (SPMD) One program, multiple processes (ranks) Processes communicate via messages An MPI

More information

Holland Computing Center Kickstart MPI Intro

Holland Computing Center Kickstart MPI Intro Holland Computing Center Kickstart 2016 MPI Intro Message Passing Interface (MPI) MPI is a specification for message passing library that is standardized by MPI Forum Multiple vendor-specific implementations:

More information

DISTRIBUTED MEMORY PROGRAMMING WITH MPI. Carlos Jaime Barrios Hernández, PhD.

DISTRIBUTED MEMORY PROGRAMMING WITH MPI. Carlos Jaime Barrios Hernández, PhD. DISTRIBUTED MEMORY PROGRAMMING WITH MPI Carlos Jaime Barrios Hernández, PhD. Remember Special Features of Architecture Remember concurrency : it exploits better the resources (shared) within a computer.

More information

4. Parallel Programming with MPI

4. Parallel Programming with MPI 4. Parallel Programming with MPI 4. Parallel Programming with MPI... 4.. MPI: Basic Concepts and Definitions...3 4... The Concept of Parallel Program...3 4..2. Data Communication Operations...3 4..3. Communicators...3

More information

Parallel Programming using MPI. Supercomputing group CINECA

Parallel Programming using MPI. Supercomputing group CINECA Parallel Programming using MPI Supercomputing group CINECA Contents Programming with message passing Introduction to message passing and MPI Basic MPI programs MPI Communicators Send and Receive function

More information

CS4961 Parallel Programming. Lecture 16: Introduction to Message Passing 11/3/11. Administrative. Mary Hall November 3, 2011.

CS4961 Parallel Programming. Lecture 16: Introduction to Message Passing 11/3/11. Administrative. Mary Hall November 3, 2011. CS4961 Parallel Programming Lecture 16: Introduction to Message Passing Administrative Next programming assignment due on Monday, Nov. 7 at midnight Need to define teams and have initial conversation with

More information

Distributed Memory Machines and Programming. Lecture 7

Distributed Memory Machines and Programming. Lecture 7 Distributed Memory Machines and Programming Lecture 7 James Demmel www.cs.berkeley.edu/~demmel/cs267_spr16 Slides from Kathy Yelick CS267 Lecture 7 1 Outline Distributed Memory Architectures Properties

More information

Introduction to parallel computing concepts and technics

Introduction to parallel computing concepts and technics Introduction to parallel computing concepts and technics Paschalis Korosoglou (support@grid.auth.gr) User and Application Support Unit Scientific Computing Center @ AUTH Overview of Parallel computing

More information

MPI 程式撰寫與實作 鄭守成 周朝宜 2006/11/04

MPI 程式撰寫與實作 鄭守成 周朝宜 2006/11/04 MPI 程式撰寫與實作 鄭守成 周朝宜 2006/11/04 課程規劃 14:10-15:10 基本 MPI 語法介紹 Basic P2P Group Other MPI_Scatter MPI_Init, MPI_Send, MPI_Gather MPI_Finalize, MPI_Barrier MPI_Recv, MPI_Comm_Size, MPI_Reduce MPI_Sendrecv MPI_Wtime

More information

Programming Scalable Systems with MPI. Clemens Grelck, University of Amsterdam

Programming Scalable Systems with MPI. Clemens Grelck, University of Amsterdam Clemens Grelck University of Amsterdam UvA / SurfSARA High Performance Computing and Big Data Course June 2014 Parallel Programming with Compiler Directives: OpenMP Message Passing Gentle Introduction

More information

Distributed Memory Programming with MPI

Distributed Memory Programming with MPI Distributed Memory Programming with MPI Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna moreno.marzolla@unibo.it Algoritmi Avanzati--modulo 2 2 Credits Peter Pacheco,

More information

Message-Passing Environments & Systems

Message-Passing Environments & Systems Message-Passing Environments & Systems Origins of Cluster Computing or Commodity Supercomputing: Limitations of Homogeneous Supercomputing Systems Heterogeneous Computing (HC) Broad Issues in Heterogeneous

More information

Lecture 3 Message-Passing Programming Using MPI (Part 1)

Lecture 3 Message-Passing Programming Using MPI (Part 1) Lecture 3 Message-Passing Programming Using MPI (Part 1) 1 What is MPI Message-Passing Interface (MPI) Message-Passing is a communication model used on distributed-memory architecture MPI is not a programming

More information

Parallel programming with MPI Part I -Introduction and Point-to-Point Communications

Parallel programming with MPI Part I -Introduction and Point-to-Point Communications Parallel programming with MPI Part I -Introduction and Point-to-Point Communications A. Emerson, A. Marani, Supercomputing Applications and Innovation (SCAI), CINECA 23 February 2016 MPI course 2016 Contents

More information

Working with IITJ HPC Environment

Working with IITJ HPC Environment Working with IITJ HPC Environment by Training Agenda for 23 Dec 2011 1. Understanding Directory structure of IITJ HPC 2. User vs root 3. What is bash_profile 4. How to install any source code in your user

More information

Introduction to MPI. Ricardo Fonseca. https://sites.google.com/view/rafonseca2017/

Introduction to MPI. Ricardo Fonseca. https://sites.google.com/view/rafonseca2017/ Introduction to MPI Ricardo Fonseca https://sites.google.com/view/rafonseca2017/ Outline Distributed Memory Programming (MPI) Message Passing Model Initializing and terminating programs Point to point

More information

ME964 High Performance Computing for Engineering Applications

ME964 High Performance Computing for Engineering Applications ME964 High Performance Computing for Engineering Applications Parallel Computing with MPI Building/Debugging MPI Executables MPI Send/Receive Collective Communications with MPI April 10, 2012 Dan Negrut,

More information

Programming with MPI. Pedro Velho

Programming with MPI. Pedro Velho Programming with MPI Pedro Velho Science Research Challenges Some applications require tremendous computing power - Stress the limits of computing power and storage - Who might be interested in those applications?

More information

Introduction to MPI: Part II

Introduction to MPI: Part II Introduction to MPI: Part II Pawel Pomorski, University of Waterloo, SHARCNET ppomorsk@sharcnetca November 25, 2015 Summary of Part I: To write working MPI (Message Passing Interface) parallel programs

More information

Introduction to the Message Passing Interface (MPI)

Introduction to the Message Passing Interface (MPI) Applied Parallel Computing LLC http://parallel-computing.pro Introduction to the Message Passing Interface (MPI) Dr. Alex Ivakhnenko March 4, 2018 Dr. Alex Ivakhnenko (APC LLC) Introduction to MPI March

More information

MPI Program Structure

MPI Program Structure MPI Program Structure Handles MPI communicator MPI_COMM_WORLD Header files MPI function format Initializing MPI Communicator size Process rank Exiting MPI 1 Handles MPI controls its own internal data structures

More information

Chapter 4. Message-passing Model

Chapter 4. Message-passing Model Chapter 4 Message-Passing Programming Message-passing Model 2 1 Characteristics of Processes Number is specified at start-up time Remains constant throughout the execution of program All execute same program

More information

MPI MPI. Linux. Linux. Message Passing Interface. Message Passing Interface. August 14, August 14, 2007 MPICH. MPI MPI Send Recv MPI

MPI MPI. Linux. Linux. Message Passing Interface. Message Passing Interface. August 14, August 14, 2007 MPICH. MPI MPI Send Recv MPI Linux MPI Linux MPI Message Passing Interface Linux MPI Linux MPI Message Passing Interface MPI MPICH MPI Department of Science and Engineering Computing School of Mathematics School Peking University

More information

Parallel programming with MPI Part I -Introduction and Point-to-Point

Parallel programming with MPI Part I -Introduction and Point-to-Point Parallel programming with MPI Part I -Introduction and Point-to-Point Communications A. Emerson, Supercomputing Applications and Innovation (SCAI), CINECA 1 Contents Introduction to message passing and

More information

MPI Programming. Henrik R. Nagel Scientific Computing IT Division

MPI Programming. Henrik R. Nagel Scientific Computing IT Division 1 MPI Programming Henrik R. Nagel Scientific Computing IT Division 2 Outline Introduction Basic MPI programming Examples Finite Difference Method Finite Element Method LU Factorization Monte Carlo Method

More information

Message-Passing Computing

Message-Passing Computing Chapter 2 Slide 41þþ Message-Passing Computing Slide 42þþ Basics of Message-Passing Programming using userlevel message passing libraries Two primary mechanisms needed: 1. A method of creating separate

More information

Parallel Programming, MPI Lecture 2

Parallel Programming, MPI Lecture 2 Parallel Programming, MPI Lecture 2 Ehsan Nedaaee Oskoee 1 1 Department of Physics IASBS IPM Grid and HPC workshop IV, 2011 Outline 1 Introduction and Review The Von Neumann Computer Kinds of Parallel

More information

Intermediate MPI. M. D. Jones, Ph.D. Center for Computational Research University at Buffalo State University of New York

Intermediate MPI. M. D. Jones, Ph.D. Center for Computational Research University at Buffalo State University of New York Intermediate MPI M. D. Jones, Ph.D. Center for Computational Research University at Buffalo State University of New York High Performance Computing I, 2008 M. D. Jones, Ph.D. (CCR/UB) Intermediate MPI

More information

The Message Passing Interface (MPI): Parallelism on Multiple (Possibly Heterogeneous) CPUs

The Message Passing Interface (MPI): Parallelism on Multiple (Possibly Heterogeneous) CPUs 1 The Message Passing Interface (MPI): Parallelism on Multiple (Possibly Heterogeneous) CPUs http://mpi-forum.org https://www.open-mpi.org/ Mike Bailey mjb@cs.oregonstate.edu Oregon State University mpi.pptx

More information

Parallel Computing. Distributed memory model MPI. Leopold Grinberg T. J. Watson IBM Research Center, USA. Instructor: Leopold Grinberg

Parallel Computing. Distributed memory model MPI. Leopold Grinberg T. J. Watson IBM Research Center, USA. Instructor: Leopold Grinberg Parallel Computing Distributed memory model MPI Leopold Grinberg T. J. Watson IBM Research Center, USA Why do we need to compute in parallel large problem size - memory constraints computation on a single

More information

Department of Informatics V. HPC-Lab. Session 4: MPI, CG M. Bader, A. Breuer. Alex Breuer

Department of Informatics V. HPC-Lab. Session 4: MPI, CG M. Bader, A. Breuer. Alex Breuer HPC-Lab Session 4: MPI, CG M. Bader, A. Breuer Meetings Date Schedule 10/13/14 Kickoff 10/20/14 Q&A 10/27/14 Presentation 1 11/03/14 H. Bast, Intel 11/10/14 Presentation 2 12/01/14 Presentation 3 12/08/14

More information

A message contains a number of elements of some particular datatype. MPI datatypes:

A message contains a number of elements of some particular datatype. MPI datatypes: Messages Messages A message contains a number of elements of some particular datatype. MPI datatypes: Basic types. Derived types. Derived types can be built up from basic types. C types are different from

More information

Programming with MPI on GridRS. Dr. Márcio Castro e Dr. Pedro Velho

Programming with MPI on GridRS. Dr. Márcio Castro e Dr. Pedro Velho Programming with MPI on GridRS Dr. Márcio Castro e Dr. Pedro Velho Science Research Challenges Some applications require tremendous computing power - Stress the limits of computing power and storage -

More information

Basic MPI Communications. Basic MPI Communications (cont d)

Basic MPI Communications. Basic MPI Communications (cont d) Basic MPI Communications MPI provides two non-blocking routines: MPI_Isend(buf,cnt,type,dst,tag,comm,reqHandle) buf: source of data to be sent cnt: number of data elements to be sent type: type of each

More information

CPS 303 High Performance Computing

CPS 303 High Performance Computing CPS 303 High Performance Computing Wensheng Shen Department of Computational Science SUNY Brockport Chapter 5: Collective communication The numerical integration problem in Chapter 4 is not very efficient.

More information

Parallel programming MPI

Parallel programming MPI Parallel programming MPI Distributed memory Each unit has its own memory space If a unit needs data in some other memory space, explicit communication (often through network) is required Point-to-point

More information

CS 6230: High-Performance Computing and Parallelization Introduction to MPI

CS 6230: High-Performance Computing and Parallelization Introduction to MPI CS 6230: High-Performance Computing and Parallelization Introduction to MPI Dr. Mike Kirby School of Computing and Scientific Computing and Imaging Institute University of Utah Salt Lake City, UT, USA

More information

MPI - The Message Passing Interface

MPI - The Message Passing Interface MPI - The Message Passing Interface The Message Passing Interface (MPI) was first standardized in 1994. De facto standard for distributed memory machines. All Top500 machines (http://www.top500.org) are

More information

Programming Using the Message-Passing Paradigm (Chapter 6) Alexandre David

Programming Using the Message-Passing Paradigm (Chapter 6) Alexandre David Programming Using the Message-Passing Paradigm (Chapter 6) Alexandre David 1.2.05 1 Topic Overview Principles of Message-Passing Programming MPI: the Message Passing Interface Topologies and Embedding

More information

MPI 2. CSCI 4850/5850 High-Performance Computing Spring 2018

MPI 2. CSCI 4850/5850 High-Performance Computing Spring 2018 MPI 2 CSCI 4850/5850 High-Performance Computing Spring 2018 Tae-Hyuk (Ted) Ahn Department of Computer Science Program of Bioinformatics and Computational Biology Saint Louis University Learning Objectives

More information

mith College Computer Science CSC352 Week #7 Spring 2017 Introduction to MPI Dominique Thiébaut

mith College Computer Science CSC352 Week #7 Spring 2017 Introduction to MPI Dominique Thiébaut mith College CSC352 Week #7 Spring 2017 Introduction to MPI Dominique Thiébaut dthiebaut@smith.edu Introduction to MPI D. Thiebaut Inspiration Reference MPI by Blaise Barney, Lawrence Livermore National

More information

Lecture 9: MPI continued

Lecture 9: MPI continued Lecture 9: MPI continued David Bindel 27 Sep 2011 Logistics Matrix multiply is done! Still have to run. Small HW 2 will be up before lecture on Thursday, due next Tuesday. Project 2 will be posted next

More information

The Message Passing Interface (MPI) TMA4280 Introduction to Supercomputing

The Message Passing Interface (MPI) TMA4280 Introduction to Supercomputing The Message Passing Interface (MPI) TMA4280 Introduction to Supercomputing NTNU, IMF January 16. 2017 1 Parallelism Decompose the execution into several tasks according to the work to be done: Function/Task

More information

Parallel Computing and the MPI environment

Parallel Computing and the MPI environment Parallel Computing and the MPI environment Claudio Chiaruttini Dipartimento di Matematica e Informatica Centro Interdipartimentale per le Scienze Computazionali (CISC) Università di Trieste http://www.dmi.units.it/~chiarutt/didattica/parallela

More information

Distributed Memory Programming with Message-Passing

Distributed Memory Programming with Message-Passing Distributed Memory Programming with Message-Passing Pacheco s book Chapter 3 T. Yang, CS240A Part of slides from the text book and B. Gropp Outline An overview of MPI programming Six MPI functions and

More information

Tutorial: parallel coding MPI

Tutorial: parallel coding MPI Tutorial: parallel coding MPI Pascal Viot September 12, 2018 Pascal Viot Tutorial: parallel coding MPI September 12, 2018 1 / 24 Generalities The individual power of a processor is still growing, but at

More information

Programming with MPI Collectives

Programming with MPI Collectives Programming with MPI Collectives Jan Thorbecke Type to enter text Delft University of Technology Challenge the future Collectives Classes Communication types exercise: BroadcastBarrier Gather Scatter exercise:

More information

Compiling and Running MPI Programs. Hello (C) Some Basic Concepts. MPI Basic Send/Receive. Cluster Computing Paul A. Farrell

Compiling and Running MPI Programs. Hello (C) Some Basic Concepts. MPI Basic Send/Receive. Cluster Computing Paul A. Farrell Paul. Farrell What is MPI? message passing library specification extended message passing model not a language or compiler specification not a specific implementation or product For parallel computers,

More information

What s in this talk? Quick Introduction. Programming in Parallel

What s in this talk? Quick Introduction. Programming in Parallel What s in this talk? Parallel programming methodologies - why MPI? Where can I use MPI? MPI in action Getting MPI to work at Warwick Examples MPI: Parallel Programming for Extreme Machines Si Hammond,

More information

Collective Communications I

Collective Communications I Collective Communications I Ned Nedialkov McMaster University Canada CS/SE 4F03 January 2016 Outline Introduction Broadcast Reduce c 2013 16 Ned Nedialkov 2/14 Introduction A collective communication involves

More information

Introduction to Parallel and Distributed Systems - INZ0277Wcl 5 ECTS. Teacher: Jan Kwiatkowski, Office 201/15, D-2

Introduction to Parallel and Distributed Systems - INZ0277Wcl 5 ECTS. Teacher: Jan Kwiatkowski, Office 201/15, D-2 Introduction to Parallel and Distributed Systems - INZ0277Wcl 5 ECTS Teacher: Jan Kwiatkowski, Office 201/15, D-2 COMMUNICATION For questions, email to jan.kwiatkowski@pwr.edu.pl with 'Subject=your name.

More information

Programming Scalable Systems with MPI. UvA / SURFsara High Performance Computing and Big Data. Clemens Grelck, University of Amsterdam

Programming Scalable Systems with MPI. UvA / SURFsara High Performance Computing and Big Data. Clemens Grelck, University of Amsterdam Clemens Grelck University of Amsterdam UvA / SURFsara High Performance Computing and Big Data Message Passing as a Programming Paradigm Gentle Introduction to MPI Point-to-point Communication Message Passing

More information

Reusing this material

Reusing this material Messages Reusing this material This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_us

More information

Parallelization. Tianhe-1A, 2.45 Pentaflops/s, 224 Terabytes RAM. Nigel Mitchell

Parallelization. Tianhe-1A, 2.45 Pentaflops/s, 224 Terabytes RAM. Nigel Mitchell Parallelization Tianhe-1A, 2.45 Pentaflops/s, 224 Terabytes RAM Nigel Mitchell Outline Pros and Cons of parallelization Shared memory vs. cluster computing MPI as a tool for sending and receiving messages

More information

High Performance Computing Course Notes Message Passing Programming I

High Performance Computing Course Notes Message Passing Programming I High Performance Computing Course Notes 2008-2009 2009 Message Passing Programming I Message Passing Programming Message Passing is the most widely used parallel programming model Message passing works

More information