Message Passing Programming with MPI
Details
The world's largest supercomputers are used almost exclusively to run applications which are parallelised using Message Passing. The course covers all the basic knowledge required to write parallel programs using this programming model, and is directly applicable to almost every parallel computer architecture.
Parallel programming by definition involves co-operation between processes to solve a common task. The programmer has to define the tasks that will be executed by the processors, and also how these tasks are to synchronise and exchange data with one another. In the message-passing model the tasks are separate processes that communicate and synchronise by explicitly sending each other messages. All these parallel operations are performed via calls to some message-passing interface that is entirely responsible for interfacing with the physical communication network linking the actual processors together. This course uses the de facto standard for message passing, the Message Passing Interface (MPI). It covers point-to-point communication, non-blocking operations, derived datatypes, virtual topologies, collective communication and general design issues.
The course is normally delivered in an intensive two-day format using EPCC's dedicated training facilities. It is taught using a variety of methods including formal lectures, practical exercises, programming examples and informal tutorial discussions. This enables lecture material to be supported by the tutored practical sessions in order to reinforce the key concepts.
This course is free to all academics.
Intended learning outcomes
On completion of this course students should be able to:
- Understand the message-passing model in detail.
- Implement standard message-passing algorithms in MPI.
- Debug simple MPI codes.
- Measure and comment on the performance of MPI codes.
- Design and implement efficient parallel programs to solve regular-grid problems.
Pre-requisites
Programming Languages: Fortran, C or C++. It is not possible to do the exercises in Java.
Timetable
Details are subject to change, but start, end and break times will stay the same.
Day 1: Message Passing Programming
- 09:30 LECTURE: Message-Passing Concepts
- 10.15 PRACTICAL: Parallel Traffic Modelling.
- 11.00 BREAK.
- 11.30 LECTURE: MPI Programs.
- 12.15 PRACTICAL: Hello World.
- 13.00 BREAK: Lunch.
- 14.00 LECTURE: Point-to-Point Communication.
- 14.30 PRACTICAL: Pi.
- 15.30 BREAK.
- 16.00 LECTURE: Communicators, Tags and Modes.
- 16.45 PRACTICAL: Ping-Pong
- 17.00 CLOSE.
Day 2: MPI
- 09:30 LECTURE: Non-Blocking Communication.
- 10.00 PRACTICAL: Message Round a Ring.
- 11.00 BREAK.
- 11.30 LECTURE: Collective Communication.
- 12.00 PRACTICAL: Collective Communication.
- 13.00 BREAK: Lunch.
- 14.00 LECTURE: Derived Data Types
- 14.30 PRACTICAL: Derived Data Types.
- 15.15 LECTURE: Introduction to the Case Study.
- 15.30 BREAK.
- 16.00 PRACTICAL: Case Study.
- 17.00 CLOSE.
Location
The course will be held in ISD Training Room B08, Basement of 1-19 Torrington Place, UCL, London WC1E 7HB.
Registration
Please use the registration page to register for ARCHER courses.
Questions?
If you have any questions please contact the ARCHER Helpdesk.