This 1-day course was last taught in 2018/19. I am currently on sabbatical but I plan to run this again in 2023/24.

OpenMP programming for parallel/vector computing

The latest generation of Intel Xeon SP (Scalable Processors) CPUs is very powerful, with each CPU having up to 56 cores, each with 1 or 2 AVX-512 vector units.

The purpose of this 1-day course is to introduce students, postdocs and others to OpenMP programming which is often the best way to obtain high performance on such systems.

The plan is for this course to be held once per year for students and postdocs in MPLS, as part of a larger package of training in scientific computing.

The course consists of approximately 3.5 hours of lectures and 3 hours of practicals. All that will be assumed is some basic proficiency with C. No prior experience with parallel computing will be assumed.


Timetable

This is a possible timetable, but the timing could be adjusted a little to avoid such an early start.

References


Lectures


Practical 1

Application: a simple 2D finite difference method

OpenMP aspects: #pragma omd parallel for, shared and private variables, reduction clause, run-time library, environment variables, avoiding false sharing

Practical 2

Application: Monte Carlo simulation using Intel's MKL library

OpenMP aspects: #pragma omp parallel, #pragma omp simd, threadprivate

Acknowledgements

Many thanks to: