Shared-Memory Programming with OpenMP
ARCHER, the UK's national supercomputing service, offers training in software development and high-performance computing to scientists and researchers across the UK. As part of our training service we are running a 3 day ARCHER OpenMP course at University of Southampton.
Trainer
Mark Bull
Mark teaches on EPCC's MSc in High Performance Computing and delivers many of our 'Shared-memory programming with OpenMP' and 'Single node optimisation' courses. He is EPCC's representative on the OpenMP standards body, and has been training computational scientists for over 20 years.
Draft page based on previous run of this course. Some details may be subject to change.
Details
Almost all modern computers now have a shared-memory architecture with multiple CPUs connected to the same physical memory, for example multicore laptops or large multi-processor compute servers. This course covers OpenMP, the industry standard for shared-memory programming, which enables serial programs to be parallelised easily using compiler directives. Users of desktop machines can use OpenMP on its own to improve program performance by running on multiple cores; users of parallel supercomputers can use OpenMP in conjunction with MPI to better exploit the shared-memory capabilities of the compute nodes.
This is an extended version of Shared-Memory Programming with OpenMP, delivered as part of the CDT programme at Southampton. In addition to covering OpenMP programming, the course will cover optimisation of both single-threaded and multi-threaded code.
This three day course will fall into two parts:
Days 1 and 2 will cover the basics of OpenMP programming, including parallel regions, worksharing, synchronisation and tasks.
Day 3 will cover optimising code for performance, starting with single-threaded considerations and moving on to mutli-threaded issues. All three days of the course will consist of lectures and hands-on practical exercises.
Pre-requisite Programming Languages:
No prior HPC or parallel programming knowledge is assumed, but attendees must already be able to program in C, C++ or Fortran. It is not possible to do the exercises in Java.
Computer access:
All course delegates will need to bring a wireless enabled laptop computer (Windows/Mac/Linux) with them on the course with the required software installed. If you have an EduRoam account please ensure this is set up beforehand.
This course is free to all academics.
Intended learning outcomes
On completion of this course students should be able to:
- Describe the fundamentals of the shared-memory architecture
- Understand the concepts of threads and shared-memory programming.
- Write, compile, and run parallel OpenMP programs.
- Perform basic optimisations for better performance.
Timetable
Day 1
Provisional timetable based on previous run - may be subject to change.
- 09:00 Lectures: Shared Memory Concepts; OpenMP Fundamentals; Parallel Regions
- 11:00 Break
- 11:30 Exercises: Hello World; Parallel regions
- 13:00 Lunch
- 14:00 Lecture: Work sharing
- 15:30 Break
- 16:00 Exercise: Parallel loops
- 17:00 Close
Day 2
- 09:00 Lectures: Synchronisatio; Further topics
- 11:00 Break
- 11:30 Exercises: Synchronisation; Orphaning
- 13:00 Lunch
- 14:00 Lectures: OpenMP Tasks
- 15:30 Break
- 16:00 Exercise: Tasks
- 17:00 Close
Day 3
- 09:00 Lecture: Computer architecture
- 11:00 Break
- 11:30 Lecture: Sequential optimisation techniques
- 13:00 Lunch
- 14:00 Lecture: Multithreaded optimisation
- 15:30 Break
- 16:00 Exercise: Multithreaded optimisation
- 17:00 Close
Course Materials
Slides and exercise material for this course.
Location
The course will be held in University of Southampton.
Registration
Please use the registration page to register for ARCHER courses.
Questions?
If you have any questions please contact the ARCHER Helpdesk.