Oct 14 – 18, 2013
BSC, Barcelona UPC, Campus Nord
CET timezone
Objectives: The course starts with the objective of setting up the basic foundations related with task decomposition and parallelization inhibitors, using a tool to analyze potential parallelism and dependences. The course follows with the objective of understanding the fundamental concepts supporting shared-memory and message-passing programming models.
The course is taught using formal lectures and practical/programming sessions to reinforce the key concepts and set up the compilation/execution environment.
The course covers the two widely used programming models: OpenMP for the shared-memory architectures and MPI for the distributed-memory counterparts. The use of OpenMP in conjunction with MPI to better exploit the shared-memory capabilities of current compute nodes in clustered architectures is also considered. Paraver will be used along the course as the tool to understand the behavior and performance of parallelized codes.

Level: For trainees with some theoretical and practical knowledge, some programming experience.

Learning Outcomes: On completion of this course students should be able to:
  • Understand the use of task decomposition and the inhibitors of the potential parallelism in a sequential algorithm.
  • Understand the fundamentals of shared-memory and message-passing models. Implement simple algorithms using OpenMP for shared-memory and MPI for message-passing.
  • Compile, execute and debug simple OpenMP and MPI codes. Understand the performance of OpenMP and MPI codes.
Prerequisites: Fortran, C or C++ programming. All examples in the course will be done in C.

Conference information

Date/Time

Starts

Ends

All times are in CET

Location

BSC, Barcelona UPC, Campus Nord
Vertex Building, room VS 208
http://bsc.es/education

Extra information

Course Program Outline:

Day 1
Session 1 / 10:00 am – 1:00 pm
1. Introduction to parallel architectures, algorithms design and performance parameters
2. Introduction to the MPI programming model
3. Practical: How to compile and run MPI applications
Session 2 / 2:00pm – 5:00 pm
1. Introduction to Paraver: tool to analyze and understand performance
2. Practical: Trace generation and trace analysis
 
Day 2
Session 1 / 10:00 am - 1:00 pm
1. Tareador: understanding and predicting the potential of task decomposition strategies
2. MPI: Point-to-point communication, collective communication
3. Practical: Simple matrix computations
Session 2 / 2:00 pm - 5:00 pm
1. MPI: Blocking and non-blocking communications
2. MPI: Communicators, Topologies
3. Practical: Heat equation example
 
Day 3
Session 1 / 10:00 am - 1:00 pm
1. Dimemas: Scalability simulation for MPI applications
2. Practical: Scalability simulations using Dimemas
Session 2 / 2:00 pm - 5:00 pm
1. xSim: Online scalability simulations for MPI applications
2. Practical: Scalability simulations using xSim
3. Additional MPI features:  Error handling, parallel libraries, I/O and fault tolerance
 
Day 4
Session 1 / 10:00am – 1:00 pm
1. Shared-memory programming models, OpenMP fundamentals
2. Parallel regions and work sharing constructs
3. Synchronization mechanisms in OpenMP
4. Practical: heat diffusion in OpenMP
Session 2 / 2:00pm – 5:00 pm
1. Programming using a hybrid MPI/OpenMP approach
2. Practical: heat diffusion in hybrid MPI/OpenMP
 
Day 5
Session 1 / 10:00 am – 1:00 pm
1. Tasking in OpenMP 3.0 and 4.0
2. Introduction to the OmpSs programming model
3. Practical: heat equation example and divide-and-conquer
Session 2 / 2:00pm – 5:00 pm
1. Programming using a hybrid MPI/OmpSs approach
2. Practical: heat equation example and divide-and-conquer

END of COURSE