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

Size: px
Start display at page:

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

Transcription

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

2 Outline Pros and Cons of parallelization Shared memory vs. cluster computing MPI as a tool for sending and receiving messages Point-to-point communication Blocking vs. non-blocking communication Latency hiding Collective communication User defined reduction operations Application to Hydrodynamics

3 Memory The model disk galaxy on the left occupies a 60kpc 3 box and requires a peak resolution of 59pc to converge. This therefore requires a mesh of cells. For each cell we need to store the following hydrodynamic properties: ρ, v x, v y, v z, E int, E tot, P As well as the gravitational potential at the current and previous time step: Φ n, Φ n 1 For each cell we also store the fractional abundances of the nine dominant elements responsible for cooling in the ISM as well as a reserve fraction for the others that we don t explicitly track; H, He, C, N, O, Ne, Mg, Si, Fe, X others

4 In all this makes 19 double precision (REAL*8) variables per cell cells 19 variables 8 bytes = bytes bytes bytes per Gigabyte = 152Gb This is more memory than what is available on most single computers, therefore we need a bigger machine!

5 Different Types of Cluster Mainframes - Shared Memory Machines Represented the first supercomputers One giant system with all of the processors and memory based on one large motherboard Communication across the motherboard is extremely fast Memory is shared between all of the processors Usually smaller as these systems have to be specially designed implying that they cost a lot more

6 Distributed Grid Supercomputers Commonly referred to as clusters Dominate the top 500 supercomputers Cheaper and easier to build Easy to scale as they use conventional hardware connected using either Ethernet or Myrinet/Infiniband connections. Easy to replace damaged or worn out components without taking the entire system offline for long periods of time.

7 Network Portal Node 01 Headnode (controls cluster) Node 02 Node 03 Each node can have a few multicore processors Nodes are connected to data switches which handle the passing of data throughout the cluster Data Switch Node 04 Node 05 Node 05 Data Switch

8 Latency and Communication Speed When we wish to send a message to another processor we need to: initialise the connection, this takes time and is known as the latency of the system. The latency depends upon the hardware used to relay the signal. Ethernet has a very high latency ( 3 ms) Infiniband and Myrinet have much smaller latencies ( 0.2 μs) Send the data. The speed of this process depends upon the bandwidth. Ethernet ( 2 Gbs 1 ) Infiniband/Myrinet ( 300 Mbs 1 ) Finalise the communication by checking that the message was received (not always done)

9 MPI Message Passing Interface MPI is a library of subroutines which have almost identical syntax in different coding languages making it easy for programmers to switch between language types C: MPI_SEND(data, count, MPI_DOUBLE, send_to, tag, MPI_COMM_WORLD); FORTRAN: call MPI_SEND( data, count, MPI_DOUBLE_PRECISION, send_to, tag, MPI_COMM_WORLD, ierr) Fortran includes an extra integer ierr to identify whether the message was successfully sent or whether an error was identified.

10 MPI s prime goals: Provide source code portability code designed on one cluster should be able to compile and run on another without having to rewrite any of your source code. Allow efficient implementation across a wide range of architectures machine dependant effects are taken care of in the MPI software. Offer sufficient functionality to undertake all major tasks in a parallel program. Designed for heterogeneous clusters all computers within the cluster must run the same Operating System and have the same software libraries installed. You can mix hardware but your simulation will be limited to the slowest components.

11 What MPI does not: MPI does not control the loading of processes onto processors this is handled by mpiexec or mpirun, e.g. mpirun np 7./flash3 MPI does not allow for the spawning of additional processes during execution you cannot change the number of processors you are using part way through a run (unlike OpenMP which does allow for spawning but only runs locally on multithreaded chips). Debugging is handled by separate programs such as DDT. Parallel I/O is not explicitly included in the MPI libraries. The user must instead write routines to organise the writing of data from each processor, or the data must be sent to the master processor using MPI calls and then written out in serial by the one master processor.

12 Initialization and Finalizing We always begin by calling call MPI_INIT(ierr) ierr = integer used to return an error code. We always finish by calling call MPI_FINALIZE(ierr) MPI_FINALIZE does not guarantee that all messages have been sent or received before it stops the MPI so it is up to the user to design the code to ensure that this is true. You cannot restart MPI by calling MPI_INIT so MPI_FINALIZE must go at the end of your program. We also need to include the following line at the top of the file so that the compiler includes the necessary MPI libraries: include mpif.h

13 Communicators All processes that we wish to communicate with must belong to a communicator. A communicator is simply a list of the ranks identifying which processes we wish to communicate with at a given time. We can therefore have many different communicators with different groups of processes in them depending upon what we want to do MPI_COMM_WORLD this is a special communicator which includes all of the processes on the system that we are running.

14 Rank Each process on a parallel job is allocated a Rank which identifies it from the rest of the processes on the system. We can obtain it using the following command Call MPI_COMM_RANK(MPI_COMM_WORLD, rank) Ranks are numbered 0 N Processes 1 (this is the same in C and FORTAN) We can determine how many processes are running using: Call MPI_COMM_SIZE(MPI_COMM_WORLD, size) where size is an integer.

15 MPI Sends There are four types of send in MPI: 1. Standard Send 2. Synchronous Send 3. Buffered Send 4. Ready Send Until the send is complete the code will stop at the line with the call to the MPI send. By definition the send call can only complete once the send buffer it is using is free, ready to be used again. For each SEND call using MPI, you need a corresponding RECV statement to receive the message. The above sends therefore only differ in the way they treat the receipt of the message.

16 MPI Blocking SEND Syntax Call MPI_SEND(buffer, count, datatype, destination, tag, comm, ierr) Variable Buffer Count datatype Destination Tag comm Purpose Name of variable or array containing the data to be sent Number of elements of a given MPI datatype that the buffer contains MPI data type of the data being sent rank of the process to which the data is being sent specific identifier in case you wish to ensure that the message is received only by a specific RECV call. The communicator specified for both the sender and receiver, e.g. MPI_COMM_WORLD

17 Blocking form MPI_SEND MPI_SSEND MPI_BSEND MPI_RSEND Non-Blocking form MPI_ISEND MPI_ISSEND MPI_IBSEND MPI_IRSEND Standard Send Synchronous Send Buffered Send Ready Send Standard Send Synchronous Send Buffered Send Ready Send (no difference to blocking MPI_RSEND) The difference between a blocking and a non-blocking process is that a blocking process stops the code until it completes the send whereas a non-blocking process allows the code to continue running past it whilst it sends the data (before the send buffer has emptied).

18 Standard Send Completes as soon as the message is sent and the send buffer is free. Does not guarantee that the message was received, it may lie in the communication network between the sender and the receiver. Should therefore not assume that send will complete before the receive begins as two blocking sends exchanging messages could result in deadlock. Should not assume that message will complete after receive begins. If the order in which processes receive messages has a specific order this could be affected by this. The code should be written in a way that guarantees that the other processes are expecting the messages and thus wait to receive all of them. Otherwise the network could become overloaded with messages that have not been received.

19 Synchronous Send Only completes once the message has been received. Requires the sending of a hand shake from the receiving process to confirm that the message has been received. Is therefore slower as you need to wait for the message to be sent and the receiver to confirm receipt. Safer as you are guaranteed that the message is received. Useful if the order that messages are received in is important

20 Buffered Send Load the message into a temporary buffer in memory ready to be sent later once the system is ready. The message immediately completes after loading the message into the buffer unless the buffer is full. As the data is stored in a buffer that must be kept open whilst the system waits to send, it must be explicitly declared by the user and is not done automatically by the MPI send routine. Attach buffer space using the command Call MPI_BUFFER_ATTACH(buffer, size) where buffer is the name of a variable or array already allocated in memory and has size declared in bytes. Detach buffer space using the command Call MPI_BUFFER_DETACH(buffer, size)

21 Note only one buffer can be attached per process. Buffered space should not be altered by the user elsewhere in the code. Advantages: This allows the system to send the data later whilst the process continues running through the code. Therefore the code does not stand idle whilst we wait to send data. Guarantees the user that the sending and receiving will not be synchronised so the user does not assume anything. Cons: We may need to check that the message was received later. As a result blocking calls generally requires less MPI calls than the equivalent process with non-blocking sends Requires the allocation of extra memory for buffering as well as copying of data into and out of buffer space which can be costly.

22 Ready Send Sends message immediately without checking to see if a corresponding receive has been posted. Designed to remove the need for hand shakes and buffering between the sender and receiver. Therefore it provides faster communication at the expense of more robust checks Difficult to debug if things go wrong as it is possible messages are left undetected in the network May need to confirm that message was received. Proc 0 Non-Blocking Receive from 0 Proc 1 With tag 0 time Synchronous Send to 1 With tag 1 Blocking Receive from 0 With tag 1 Ready Send to 1 With tag 0 Message with tag 0 is received

23 MPI Blocking RECV Syntax Call MPI_RECV(buffer, count, datatype, source, tag, comm, status, ierr) Variable Buffer Count datatype source Tag comm status Purpose Name of variable or array into which received data should be written Number of elements of a given MPI datatype that buffer can contain (for MPI_RECV this can be an upper limit with the actual number of elements received being lower). MPI data type of the data being received rank of the process from which the data was sent. You can receive messages from any source using MPI_ANY_SOURCE specific identifier in case you wish to ensure that only a specific message is received by this call. You can receive messages from any tag using MPI_ANY_TAG The communicator specified for both the sender and receiver, e.g. MPI_COMM_WORLD If wildcards are specified for either source or tag, allowing the process to receive messages from any other process, then status returns the resulting source and tag of the sender

24 Call MPI_COMM_RANK(MPI_COMM_WORLD, mype) SenderID = 0 DestinationID = 1 if(mype.eq. SenderID) then! We are the sending process buffer=5678! Set the data to be sent Call MPI_Send(buffer, count, MPI_INTEGER, DestinationID, & tag, MPI_COMM_WORLD, ierr) write(*,*)"processor ",mype," sent ",buffer endif if(mype.eq. DestinationID) then! We are the receiving process Call MPI_Recv(buffer, count, MPI_INTEGER, SenderPE, & tag, MPI_COMM_WORLD, status,ierr) write(*,*)"processor ",mype," got ",buffer endif call MPI_FINALIZE(ierr) stop end

25 Message Order in Point-to-Point Communication The order that messages are sent in is preserved. Therefore if we send three messages from processor 0; a, b and c, then the receiver cannot receive them in any order other than a, b, c. Messages cannot overtake each other. If we communicate with multiple processors the messages can arrive in any intermixed order. Example: If we send a,b,c from process 0 and d, e, f from process 1, then the receiver on process 2 can receive them in any mixed order: a, b, d, e, f, c or a, d, e, b, c, f but not a, c, d, e, f, b as the message order from process 0 would have been broken. For this reason tags are useful when the order of messages are important

26 Testing for Completion of Non-Blocking Communication Call MPI_WAIT(request, status) Blocks the process whilst it waits for the communication specified with the request handle to complete. The request handle is returned by the non-blocking process we wish to check. Useful when you need the data before proceeding forward. Call MPI_WAIT_ALL(count, array_of_requests, array_of_statuses) Blocks the process whilst we wait for all processes in the provided communicator list to finish. Call MPI_TEST(request, flag, status) MPI_TEST only checks to see if the communication has completed but does not block the process. It returns either TRUE or FALSE in the variable flag.

27 Timing in MPI MPI_WTIME() double precision function which returns the wall clock time of the current process, useful for recording the time spent communicating. Note that the wall clock time has no well defined starting point so timings should be relative.

28 Collective Communication Collective communication always includes all processes in a given communicator Thus if we wish to act only on a few processes, then it may be better to define another communicator rather than use MPI_COMM_WORLD or perform point-to-point operations Point-to-point communicators cannot see collective communicators and vice versa (i.e. RECV cannot receive a message from a collective communication) Collective communications are all blocking, there are no nonblocking equivalents All processes within the communicator must call the collective communication subroutine As collective communications are blocking and all processes are involved, there is no need for tags as you can only perform one call at a time The sent message must fill the receive buffer unlike in point-topoint communications

29 MPI_BARRIER Call MPI_BARRIER(comm, ierr) Only blocks all processes until all processes within the communicator are at the MPI_BARRIER call. Used to synchronise all processes.

30 Before After ROOT B ROOT MPI_BCAST B B B B Broadcasts data from the root to all other processes within the communicator All processes must specify the same root and communicator buffer is used to send data on the root and used to receive the data on the receiving processes Call MPI_BCAST(buffer, count, datatype, root, comm, ierr)

31 Before After A A ROOT B ROOT B C D C D MPI_SCATTER A B C D Scatters data from the root to all other processes within the communicator Send_count is the number of elements sent to each process, not the total sent by the root. Send_ variables are dummy variables on receivers and recv_ variables are dummy variables on the root. Call MPI_SCATTER(send_buffer, send_count, send_datatype, recv_buffer, recv_count, recv_datatype, root, comm, ierr)

32 Before After ROOT MPI_GATHER A B C D ROOT A B C D A B C D Gathers a copy of data from all other processes and sends it to the root. All processes must specify the same root and communicator The recv_count will be different to the send_count send_ variables are dummy variables for receivers and vice versa for the recv_ variables Call MPI_GATHER (send_buffer, send_count, send_datatype, recv_buffer, recv_count, recv_datatype, root, comm, ierr)

33 Before After A ROOT ROOT MPI_ALLGATHER A B C D A B C D B C D A B C D A B C D A B C D Gathers copy of data from all processes and sends a copy to all processes Does not have a specific root process Send and receive details are important on all processes and may be different Amount of data sent from each process not necessarily the same Call MPI_ALLGATHER(send_buffer, send_count, send_datatype, recv_buffer, recv_count, recv_datatype, comm, ierr)

34 Before A After A ROOT ROOT MPI_ALL_TO_ALL B C D E F G H I J K L M N O P B C D E F G H I J K L M N O P A E I M B F J N C G K O D H L P Copies the n th element of the buffer array to the n th process, ordering them in the receiving array in ascending order according to which process sent them E.g. 1 st element of every process goes to the first process, ordered according to rank Call MPI_ALL_TO_ALL(send_buffer, send_count, send_datatype, recv_buffer, recv_count, recv_datatype, comm, ierr)

35 Before A B C D After Global Reduction Operations E I M F J N G H K L O P A E I B F J C D G H K L A selected reduction operation can be performed taking the n th buffer element from each process, e.g. SUM, MIN, MAX. The result is stored in the n th receiving element of the receiving buffer The order with which the operator acts on the array elements must not matter, i.e. M N O P AoEoIoM = AoMoEoI = AoIoMoE Reduction Operation

36 Reduction Operators Included With MPI MPI NAME MPI_MAX MPI_MIN MPI_SUM MPI_PRODUCT MPI_LAND MPI_BAND MPI_LOR MPI_BOR MPI_LXOR MPI_BXOR MPI_MAXLOC MPI_MINLOC Function Maximum Minimum Finds the Sum Determines the Product Logical AND Bitwise AND Logical OR Bitwise OR Logical exclusive OR Bitwise exclusive OR Maximum and its location (process rank) Minimum and its location (process rank)

37 Global Reduction Operations Call MPI_REDUCE(send_buffer, recv_buffer, count, datatype, operation_type, root, comm, ierr) - MPI_REDUCE only returns the result from the selected operator to the root process Call MPI_ALLREDUCE(send_buffer, recv_buffer, count, datatype, operation_type, comm, ierr) - MPI_ALLREDUCE returns the result from the selected operator to all processes and therefore no root argument is needed

38 Applying Parallelization to Hydro Codes

39 Ghost Cells Ghost cells or Guard Cells are cells either side of the computational domain that contain information on the boundary conditions. These are needed for some differencing operations - for example the gradient of the pressure: P = P i+1 P i 1 2Δx Ghost cells however are not updated by the advection scheme, unlike the other cells. Instead they are filled with pre-defined boundary data. P i=1 P i=2 P i=3 P i 1 P i P i+1 Guard cells (containing boundary information)

40 If we parallelize the problem and split the computational domain into groups of cells (blocks) then we need ghost cells on each block. Some of the ghost cells will contain the boundary information at the edge of the simulation volume we work in, whilst the others will contain copies of data from neighbouring blocks. Ghost cells that represent regions internal to the simulation volume contain data copied from their neighbouring blocks. Ghost cells on the outside of the computational domain contain user defined boundary conditions

41 Internal Cells Latency Hiding Guardcells containing boundary or neighbouring cell data If we use non-blocking sends we can perform some useful calculations on the internal cells whilst we wait for the transfer of guardcell data. Once we have received the guardcell data we can act upon data at the edges. This works well for processes such as cooling when we do not need to calculate gradients e.g. P As we still perform useful work instead of waiting idly for the communication to complete, we essentially hide the latency.

42 Morton Space Filling Curves Figure: Morton Space Filling Curve (University of Chicago, FLASH Centre for Computational Science) As each block of cells will require boundary data from neighbouring blocks, it is best to place blocks with the most common neighbours on the same CPU. This helps reduce communication across the network. Morton space filling curves like the one shown left determine the most ideal relation between blocks.

43 Labserv You will need to use labserv to compile and run your code Log into the system using: ssh Y student1@labserv.astro.univie.ac.at Labserv has mpif90 installed. Use following command to compile your code: mpif90 program.f90 o program.exe Run your code using the following command: mpirun np 2./program.exe (you can replace 2 with the desired number of processors) Labserv has 8 processors so occasionally you may have to wait for someone else to finish running their program

44 Parallelizing a Hydro Code Determine rank of each process and total number of processes Sub-divide the computational region (400 cells) across the processes and implement initial conditions Determine global minimum time step value Exchange guardcell data before and after hydro time step First try with synchronised sends then use non-blocking buffered sends When simulation is finished, send all of the data to the master processor which should then write the data out in order

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

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

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

MPI MESSAGE PASSING INTERFACE

MPI MESSAGE PASSING INTERFACE MPI MESSAGE PASSING INTERFACE David COLIGNON CÉCI - Consortium des Équipements de Calcul Intensif http://hpc.montefiore.ulg.ac.be Outline Introduction From serial source code to parallel execution MPI

More information

High Performance Computing

High Performance Computing High Performance Computing Course Notes 2009-2010 2010 Message Passing Programming II 1 Communications Point-to-point communications: involving exact two processes, one sender and one receiver For example,

More information

AMath 483/583 Lecture 21

AMath 483/583 Lecture 21 AMath 483/583 Lecture 21 Outline: Review MPI, reduce and bcast MPI send and receive Master Worker paradigm References: $UWHPSC/codes/mpi class notes: MPI section class notes: MPI section of bibliography

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

Message Passing Interface

Message Passing Interface Message Passing Interface by Kuan Lu 03.07.2012 Scientific researcher at Georg-August-Universität Göttingen and Gesellschaft für wissenschaftliche Datenverarbeitung mbh Göttingen Am Faßberg, 37077 Göttingen,

More information

CSE. Parallel Algorithms on a cluster of PCs. Ian Bush. Daresbury Laboratory (With thanks to Lorna Smith and Mark Bull at EPCC)

CSE. Parallel Algorithms on a cluster of PCs. Ian Bush. Daresbury Laboratory (With thanks to Lorna Smith and Mark Bull at EPCC) Parallel Algorithms on a cluster of PCs Ian Bush Daresbury Laboratory I.J.Bush@dl.ac.uk (With thanks to Lorna Smith and Mark Bull at EPCC) Overview This lecture will cover General Message passing concepts

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

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

Week 3: MPI. Day 02 :: Message passing, point-to-point and collective communications

Week 3: MPI. Day 02 :: Message passing, point-to-point and collective communications Week 3: MPI Day 02 :: Message passing, point-to-point and collective communications Message passing What is MPI? A message-passing interface standard MPI-1.0: 1993 MPI-1.1: 1995 MPI-2.0: 1997 (backward-compatible

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

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

Collective Communications

Collective Communications Collective Communications 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

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

CEE 618 Scientific Parallel Computing (Lecture 5): Message-Passing Interface (MPI) advanced

CEE 618 Scientific Parallel Computing (Lecture 5): Message-Passing Interface (MPI) advanced 1 / 32 CEE 618 Scientific Parallel Computing (Lecture 5): Message-Passing Interface (MPI) advanced Albert S. Kim Department of Civil and Environmental Engineering University of Hawai i at Manoa 2540 Dole

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 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

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

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

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

Part - II. Message Passing Interface. Dheeraj Bhardwaj

Part - II. Message Passing Interface. Dheeraj Bhardwaj Part - II Dheeraj Bhardwaj Department of Computer Science & Engineering Indian Institute of Technology, Delhi 110016 India http://www.cse.iitd.ac.in/~dheerajb 1 Outlines Basics of MPI How to compile and

More information

Standard MPI - Message Passing Interface

Standard MPI - Message Passing Interface c Ewa Szynkiewicz, 2007 1 Standard MPI - Message Passing Interface The message-passing paradigm is one of the oldest and most widely used approaches for programming parallel machines, especially those

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

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

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

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 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

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

A Message Passing Standard for MPP and Workstations

A Message Passing Standard for MPP and Workstations A Message Passing Standard for MPP and Workstations Communications of the ACM, July 1996 J.J. Dongarra, S.W. Otto, M. Snir, and D.W. Walker Message Passing Interface (MPI) Message passing library Can be

More information

Point-to-Point Communication. Reference:

Point-to-Point Communication. Reference: Point-to-Point Communication Reference: http://foxtrot.ncsa.uiuc.edu:8900/public/mpi/ Introduction Point-to-point communication is the fundamental communication facility provided by the MPI library. Point-to-point

More information

Message passing. Week 3: MPI. Day 02 :: Message passing, point-to-point and collective communications. What is MPI?

Message passing. Week 3: MPI. Day 02 :: Message passing, point-to-point and collective communications. What is MPI? Week 3: MPI Day 02 :: Message passing, point-to-point and collective communications Message passing What is MPI? A message-passing interface standard MPI-1.0: 1993 MPI-1.1: 1995 MPI-2.0: 1997 (backward-compatible

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

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

Chip Multiprocessors COMP Lecture 9 - OpenMP & MPI

Chip Multiprocessors COMP Lecture 9 - OpenMP & MPI Chip Multiprocessors COMP35112 Lecture 9 - OpenMP & MPI Graham Riley 14 February 2018 1 Today s Lecture Dividing work to be done in parallel between threads in Java (as you are doing in the labs) is rather

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

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

MPI 5. CSCI 4850/5850 High-Performance Computing Spring 2018 MPI 5 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

Acknowledgments. Programming with MPI Basic send and receive. A Minimal MPI Program (C) Contents. Type to enter text

Acknowledgments. Programming with MPI Basic send and receive. A Minimal MPI Program (C) Contents. Type to enter text Acknowledgments Programming with MPI Basic send and receive Jan Thorbecke Type to enter text This course is partly based on the MPI course developed by Rolf Rabenseifner at the High-Performance Computing-Center

More information

MPI Tutorial. Shao-Ching Huang. IDRE High Performance Computing Workshop

MPI Tutorial. Shao-Ching Huang. IDRE High Performance Computing Workshop MPI Tutorial Shao-Ching Huang IDRE High Performance Computing Workshop 2013-02-13 Distributed Memory Each CPU has its own (local) memory This needs to be fast for parallel scalability (e.g. Infiniband,

More information

COMP 322: Fundamentals of Parallel Programming

COMP 322: Fundamentals of Parallel Programming COMP 322: Fundamentals of Parallel Programming https://wiki.rice.edu/confluence/display/parprog/comp322 Lecture 37: Introduction to MPI (contd) Vivek Sarkar Department of Computer Science Rice University

More information

Programming with MPI Basic send and receive

Programming with MPI Basic send and receive Programming with MPI Basic send and receive Jan Thorbecke Type to enter text Delft University of Technology Challenge the future Acknowledgments This course is partly based on the MPI course developed

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

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

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

AMath 483/583 Lecture 18 May 6, 2011

AMath 483/583 Lecture 18 May 6, 2011 AMath 483/583 Lecture 18 May 6, 2011 Today: MPI concepts Communicators, broadcast, reduce Next week: MPI send and receive Iterative methods Read: Class notes and references $CLASSHG/codes/mpi MPI Message

More information

Paul Burton April 2015 An Introduction to MPI Programming

Paul Burton April 2015 An Introduction to MPI Programming Paul Burton April 2015 Topics Introduction Initialising MPI & basic concepts Compiling and running a parallel program on the Cray Practical : Hello World MPI program Synchronisation Practical Data types

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

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

Non-Blocking Communications

Non-Blocking Communications Non-Blocking Communications Deadlock 1 5 2 3 4 Communicator 0 2 Completion The mode of a communication determines when its constituent operations complete. - i.e. synchronous / asynchronous The form of

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

Parallel Computing Programming Distributed Memory Architectures

Parallel Computing Programming Distributed Memory Architectures Parallel Computing Programming Distributed Memory Architectures Dr. Gerhard Wellein,, Dr. Georg Hager Regionales Rechenzentrum Erlangen (RRZE) Vorlesung Parallelrechner Georg-Simon Simon-Ohm-Fachhochschule

More information

Message Passing Programming. Modes, Tags and Communicators

Message Passing Programming. Modes, Tags and Communicators Message Passing Programming Modes, Tags and Communicators Overview Lecture will cover - explanation of MPI modes (Ssend, Bsend and Send) - meaning and use of message tags - rationale for MPI communicators

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

Message-Passing and MPI Programming

Message-Passing and MPI Programming Message-Passing and MPI Programming 2.1 Transfer Procedures Datatypes and Collectives N.M. Maclaren Computing Service nmm1@cam.ac.uk ext. 34761 July 2010 These are the procedures that actually transfer

More information

Review of MPI Part 2

Review of MPI Part 2 Review of MPI Part Russian-German School on High Performance Computer Systems, June, 7 th until July, 6 th 005, Novosibirsk 3. Day, 9 th of June, 005 HLRS, University of Stuttgart Slide Chap. 5 Virtual

More information

An introduction to MPI

An introduction to MPI An introduction to MPI C MPI is a Library for Message-Passing Not built in to compiler Function calls that can be made from any compiler, many languages Just link to it Wrappers: mpicc, mpif77 Fortran

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

Introduction to MPI Programming Part 2

Introduction to MPI Programming Part 2 Introduction to MPI Programming Part 2 Outline Collective communication Derived data types Collective Communication Collective communications involves all processes in a communicator One to all, all to

More information

Topics. Lecture 7. Review. Other MPI collective functions. Collective Communication (cont d) MPI Programming (III)

Topics. Lecture 7. Review. Other MPI collective functions. Collective Communication (cont d) MPI Programming (III) Topics Lecture 7 MPI Programming (III) Collective communication (cont d) Point-to-point communication Basic point-to-point communication Non-blocking point-to-point communication Four modes of blocking

More information

Introduction to MPI. Susan Mehringer Cornell Center for Advanced Computing. 19 May Based on materials developed by CAC and TACC

Introduction to MPI. Susan Mehringer Cornell Center for Advanced Computing. 19 May Based on materials developed by CAC and TACC Introduction to MPI Susan Mehringer Cornell Center for Advanced Computing 19 May 2010 Based on materials developed by CAC and TACC Overview Outline Overview Basics Hello World in MPI Compiling and running

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

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

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 Computing Programming Distributed Memory Architectures

Parallel Computing Programming Distributed Memory Architectures Parallel Computing Programming Distributed Memory Architectures Dr. Gerhard Wellein, Dr. Georg Hager Regionales Rechenzentrum Erlangen (RRZE) Blockkurs Parallelrechner Georg-Simon Simon-Ohm-Fachhochschule

More information

PyConZA High Performance Computing with Python. Kevin Colville Python on large clusters with MPI

PyConZA High Performance Computing with Python. Kevin Colville Python on large clusters with MPI PyConZA 2012 High Performance Computing with Python Kevin Colville Python on large clusters with MPI Andy Rabagliati Python to read and store data on CHPC Petabyte data store www.chpc.ac.za High Performance

More information

Peter Pacheco. Chapter 3. Distributed Memory Programming with MPI. Copyright 2010, Elsevier Inc. All rights Reserved

Peter Pacheco. Chapter 3. Distributed Memory Programming with MPI. Copyright 2010, Elsevier Inc. All rights Reserved An Introduction to Parallel Programming Peter Pacheco Chapter 3 Distributed Memory Programming with MPI 1 Roadmap Writing your first MPI program. Using the common MPI functions. The Trapezoidal Rule in

More information

MPI Message Passing Interface. Source:

MPI Message Passing Interface. Source: MPI Message Passing Interface Source: http://www.netlib.org/utk/papers/mpi-book/mpi-book.html Message Passing Principles Explicit communication and synchronization Programming complexity is high But widely

More information

COMP 322: Fundamentals of Parallel Programming. Lecture 34: Introduction to the Message Passing Interface (MPI), contd

COMP 322: Fundamentals of Parallel Programming. Lecture 34: Introduction to the Message Passing Interface (MPI), contd COMP 322: Fundamentals of Parallel Programming Lecture 34: Introduction to the Message Passing Interface (MPI), contd Vivek Sarkar, Eric Allen Department of Computer Science, Rice University Contact email:

More information

Distributed Memory Programming with MPI. Copyright 2010, Elsevier Inc. All rights Reserved

Distributed Memory Programming with MPI. Copyright 2010, Elsevier Inc. All rights Reserved An Introduction to Parallel Programming Peter Pacheco Chapter 3 Distributed Memory Programming with MPI 1 Roadmap Writing your first MPI program. Using the common MPI functions. The Trapezoidal Rule in

More information

Cornell Theory Center. Discussion: MPI Collective Communication I. Table of Contents. 1. Introduction

Cornell Theory Center. Discussion: MPI Collective Communication I. Table of Contents. 1. Introduction 1 of 18 11/1/2006 3:59 PM Cornell Theory Center Discussion: MPI Collective Communication I This is the in-depth discussion layer of a two-part module. For an explanation of the layers and how to navigate

More information

MA471. Lecture 5. Collective MPI Communication

MA471. Lecture 5. Collective MPI Communication MA471 Lecture 5 Collective MPI Communication Today: When all the processes want to send, receive or both Excellent website for MPI command syntax available at: http://www-unix.mcs.anl.gov/mpi/www/ 9/10/2003

More information

High-Performance Computing: MPI (ctd)

High-Performance Computing: MPI (ctd) High-Performance Computing: MPI (ctd) Adrian F. Clark: alien@essex.ac.uk 2015 16 Adrian F. Clark: alien@essex.ac.uk High-Performance Computing: MPI (ctd) 2015 16 1 / 22 A reminder Last time, we started

More information

CINES MPI. Johanne Charpentier & Gabriel Hautreux

CINES MPI. Johanne Charpentier & Gabriel Hautreux Training @ CINES MPI Johanne Charpentier & Gabriel Hautreux charpentier@cines.fr hautreux@cines.fr Clusters Architecture OpenMP MPI Hybrid MPI+OpenMP MPI Message Passing Interface 1. Introduction 2. MPI

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

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 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

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) s http://mpi-forum.org https://www.open-mpi.org/ Mike Bailey mjb@cs.oregonstate.edu Oregon State University mpi.pptx

More information

Parallel Programming Using Basic MPI. Presented by Timothy H. Kaiser, Ph.D. San Diego Supercomputer Center

Parallel Programming Using Basic MPI. Presented by Timothy H. Kaiser, Ph.D. San Diego Supercomputer Center 05 Parallel Programming Using Basic MPI Presented by Timothy H. Kaiser, Ph.D. San Diego Supercomputer Center Talk Overview Background on MPI Documentation Hello world in MPI Basic communications Simple

More information

Tutorial 2: MPI. CS486 - Principles of Distributed Computing Papageorgiou Spyros

Tutorial 2: MPI. CS486 - Principles of Distributed Computing Papageorgiou Spyros Tutorial 2: MPI CS486 - Principles of Distributed Computing Papageorgiou Spyros What is MPI? An Interface Specification MPI = Message Passing Interface Provides a standard -> various implementations Offers

More information

Non-Blocking Communications

Non-Blocking Communications Non-Blocking Communications 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

MPI, Part 3. Scientific Computing Course, Part 3

MPI, Part 3. Scientific Computing Course, Part 3 MPI, Part 3 Scientific Computing Course, Part 3 Non-blocking communications Diffusion: Had to Global Domain wait for communications to compute Could not compute end points without guardcell data All work

More information

Advanced MPI. Andrew Emerson

Advanced MPI. Andrew Emerson Advanced MPI Andrew Emerson (a.emerson@cineca.it) Agenda 1. One sided Communications (MPI-2) 2. Dynamic processes (MPI-2) 3. Profiling MPI and tracing 4. MPI-I/O 5. MPI-3 11/12/2015 Advanced MPI 2 One

More information

Message Passing Programming. Modes, Tags and Communicators

Message Passing Programming. Modes, Tags and Communicators Message Passing Programming Modes, Tags and Communicators 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

mpidl The Power of MPI in IDL Version Tech-X Corporation 5621 Arapahoe Avenue, Suite A Boulder, CO

mpidl The Power of MPI in IDL Version Tech-X Corporation 5621 Arapahoe Avenue, Suite A Boulder, CO mpidl The Power of MPI in IDL Version 2.4.0 Tech-X Corporation 5621 Arapahoe Avenue, Suite A Boulder, CO 80303 http://www.txcorp.com info@txcorp.com mpidl User Guide CONTENTS Contents Table of Contents

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

Parallel Programming Basic MPI. Timothy H. Kaiser, Ph.D.

Parallel Programming Basic MPI. Timothy H. Kaiser, Ph.D. Parallel Programming Basic MPI Timothy H. Kaiser, Ph.D. tkaiser@mines.edu Talk Overview Background on MPI Documentation Hello world in MPI Basic communications Simple send and receive program Examples

More information

character :: buffer(100) integer :: position real :: a, b integer :: n position = 0 call MPI_PACK(a, 1, MPI_REAL, buffer, 100, & position, MPI_COMM_WO

character :: buffer(100) integer :: position real :: a, b integer :: n position = 0 call MPI_PACK(a, 1, MPI_REAL, buffer, 100, & position, MPI_COMM_WO MPI_PACK and MPI_UNPACK Each communication incurs a latency penalty so it is best to group communications together Requires data to be contiguous in memory with no gaps between variables This is true for

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 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

Chapter 3. Distributed Memory Programming with MPI

Chapter 3. Distributed Memory Programming with MPI An Introduction to Parallel Programming Peter Pacheco Chapter 3 Distributed Memory Programming with MPI 1 Roadmap n Writing your first MPI program. n Using the common MPI functions. n The Trapezoidal Rule

More information

Buffering in MPI communications

Buffering in MPI communications Buffering in MPI communications Application buffer: specified by the first parameter in MPI_Send/Recv functions System buffer: Hidden from the programmer and managed by the MPI library Is limitted and

More information

A Message Passing Standard for MPP and Workstations. Communications of the ACM, July 1996 J.J. Dongarra, S.W. Otto, M. Snir, and D.W.

A Message Passing Standard for MPP and Workstations. Communications of the ACM, July 1996 J.J. Dongarra, S.W. Otto, M. Snir, and D.W. 1 A Message Passing Standard for MPP and Workstations Communications of the ACM, July 1996 J.J. Dongarra, S.W. Otto, M. Snir, and D.W. Walker 2 Message Passing Interface (MPI) Message passing library Can

More information

lslogin3$ cd lslogin3$ tar -xvf ~train00/mpibasic_lab.tar cd mpibasic_lab/pi cd mpibasic_lab/decomp1d

lslogin3$ cd lslogin3$ tar -xvf ~train00/mpibasic_lab.tar cd mpibasic_lab/pi cd mpibasic_lab/decomp1d MPI Lab Getting Started Login to ranger.tacc.utexas.edu Untar the lab source code lslogin3$ cd lslogin3$ tar -xvf ~train00/mpibasic_lab.tar Part 1: Getting Started with simple parallel coding hello mpi-world

More information

Writing Message Passing Parallel Programs with MPI

Writing Message Passing Parallel Programs with MPI Writing Message Passing Parallel Programs with MPI A Two Day Course on MPI Usage Course Notes Version 1.8.2 Neil MacDonald, Elspeth Minty, Joel Malard, Tim Harding, Simon Brown, Mario Antonioletti Edinburgh

More information

MPI Collective communication

MPI Collective communication MPI Collective communication CPS343 Parallel and High Performance Computing Spring 2018 CPS343 (Parallel and HPC) MPI Collective communication Spring 2018 1 / 43 Outline 1 MPI Collective communication

More information

Parallel Programming

Parallel Programming Parallel Programming Point-to-point communication Prof. Paolo Bientinesi pauldj@aices.rwth-aachen.de WS 18/19 Scenario Process P i owns matrix A i, with i = 0,..., p 1. Objective { Even(i) : compute Ti

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

Introduction to MPI. Ekpe Okorafor. School of Parallel Programming & Parallel Architecture for HPC ICTP October, 2014

Introduction to MPI. Ekpe Okorafor. School of Parallel Programming & Parallel Architecture for HPC ICTP October, 2014 Introduction to MPI Ekpe Okorafor School of Parallel Programming & Parallel Architecture for HPC ICTP October, 2014 Topics Introduction MPI Model and Basic Calls MPI Communication Summary 2 Topics Introduction

More information

Agenda. MPI Application Example. Praktikum: Verteiltes Rechnen und Parallelprogrammierung Introduction to MPI. 1) Recap: MPI. 2) 2.

Agenda. MPI Application Example. Praktikum: Verteiltes Rechnen und Parallelprogrammierung Introduction to MPI. 1) Recap: MPI. 2) 2. Praktikum: Verteiltes Rechnen und Parallelprogrammierung Introduction to MPI Agenda 1) Recap: MPI 2) 2. Übungszettel 3) Projektpräferenzen? 4) Nächste Woche: 3. Übungszettel, Projektauswahl, Konzepte 5)

More information