OpenMP programming for parallel/vector computing
This will be held on May 21st in L6. Practicals can be carried
out on the servers "shadowcat" and "cyclops".
The latest generation of Intel Xeon SP (Scalable Processors)
CPUs is very powerful, with each CPU having up to 28 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.
Initially, this course will be held once in Trinity Term 2018,
but it may be repeated in the future, particularly if it becomes
a standard part of scientific computing training for CDTs.
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.
This is the proposed timetable, but the timing could be adjusted
a little to avoid such an early start.
- 09:00 - 10:30 lecture 1
- 10:30 - 10:45 break
- 10:45 - 11:45 lecture 2
- 11:45 - 12:00 break
- 12:00 - 13:00 practical 1
- 13:00 - 14:00 lunch
- 14:00 - 14:30 practical 1 (continued)
- 14:30 - 15:30 lecture 3
- 15:30 - 15:45 break
- 15:45 - 17:15 practical 2
Application: a very simple 2D finite difference method
OpenMP aspects: #pragma omd parallel for, shared and private variables,
reduction clause, run-time library, environment variables, avoiding
Application: Monte Carlo simulation using Intel's MKL library
OpenMP aspects: #pragma omp parallel, #pragma omp simd,
Many thanks to:
- Wes Armour and Ian Bush for comments on the lectures and practicals
- Ian Bush, EPCC and NAG for their OpenMP training materials which
were very helpful in preparing my materials