Lecture Parallel Programming
Parallel programming is becoming increasingly important, as even phones and laptops have several processor cores. Some supercomputers even consist of several million cores and have established themselves as a useful and indispensable tool for many areas of science. The resulting analyses and simulations have made it possible to significantly increase scientific insight in many areas.
However, the optimal use of these components is no easy task, which is why scientists are constantly faced with new challenges when developing efficient applications. A deeper understanding of the hardware and software environment as well as the possible causes of errors is therefore essential for parallel programming.
In the lecture, the basics of parallel programming are taught; the exercises serve the practical application and implementation of the acquired knowledge in the C programming language.
The lecture will cover some of the most important topics: Hardware and software concepts (multi-core processors, processes/threads, NUMA etc.), different approaches to parallel programming (OpenMP, POSIX threads, MPI) as well as tools for performance analysis and debugging (scalability, deadlocks, race conditions etc.). Moreover, reasons and solutions for performance problems are discussed and alternative approaches to parallel programming are presented. Examples and problems are illustrated using real scientific applications.
Course
- Lecture: Wednesday 17:15-18:45 Uhr (G29-335)
- Exercises: Wednesday 11:15-12:45 Uhr (G29-335)
- Contact: Michael Kuhn und Michael Blesel
Learning Objective
Participants will learn how to create parallel programs using various programming approaches, how to execute them and how to optimize their execution. In addition, further concepts for parallelization are taught and put into practice in the exercises.
Requirements
Required skills:
- Practical knowledge of a programming language and the ability to create simple applications
Recommended skills:
- Basic knowledge about operating systems
- Basic knowledge about parallel programming
Lecture
- 2024-04-10: Introduction (Slides)
- 2024-04-17: Performance Analysis and Optimization (Slides, Materials)
- 2024-04-24: Hardware Architectures (Slides)
- 2024-05-01: Public holiday
- 2024-05-08: Parallel Programming (Slides, Materials)
- 2024-05-15: Skipped
- 2024-05-22: Programming with OpenMP (Slides, Materials)
- 2024-05-29: Operating System Concepts (Slides, Materials)
- 2024-06-05: Programming with POSIX Threads (Slides, Materials)
- 2024-06-12: Programming with MPI (Slides, Materials)
- 2024-06-19: Networking and Scalability (Slides)
- 2024-06-26: Advanced MPI and Debugging (Slides, Materials)
- 2024-07-03: Parallel I/O (Slides)
- 2024-07-10: Research Talks and Debriefing
Exercises
- 2024-04-10: Introduction (Sheet 0, Sheet 1, Materials)
- Deadline: 2024-04-21, 23:59
- 2024-04-22: Debugging (Sheet 2, Materials)
- Deadline: 2024-05-05, 23:59
- 2024-04-29: Performance Optimization of a Serial Application (Sheet 3, Materials)
- Deadline: 2024-05-19, 23:59
- 2024-05-20: Parallelization with OpenMP and Parallelization Schema (Sheet 4, Materials)
- Deadline: 2024-06-02, 23:59
- 2024-06-03: Parallelization with POSIX Threads (Sheet 5, Materials)
- Deadline: 2024-06-16, 23:59
- 2024-06-10: MPI Introduction (Sheet 6, Materials)
- Deadline: 2024-06-23, 23:59
- 2024-06-17: Parallelization with MPI (Sheet 7, Materials)
- Deadline: 2024-07-07, 23:59
Literature
- High Performance Computing: Modern Systems and Practices (Thomas Sterling, Matthew Anderson and Maciej Brodowicz)
- Parallel Programming: for Multicore and Cluster Systems (Thomas Rauber and Gudula Rünger)
- Parallel Programming: Concepts and Practice (Dr. Bertil Schmidt, Dr. Jorge Gonzalez-Dominguez, Christian Hundt and Moritz Schlarb)