Presentation sessions will introduce GPU hardware and survey the current software landscape, before covering adapting algorithms for greater GPU-effectiveness, and an introduction to software architecture. The day is completed with a focussed ”Deep Dive” led by an experienced practitioner with real-world insights from porting their own codes, and a supervised exercise in porting code from CPUs to GPUs using a selection of programming languages.
Activities shift further towards hands-on learning, with continued mentor-led exercises and further “Deep Dive” sessions. Further presentations will cover performance monitoring and profiling, and both single-GPU and multi-GPU optimisation, as well as a review of other available GPU training packages. You’ll also have access to drop-in code clinics, where Research Software Engineers will offer tailored advice and guidance, whether you’re interested in refining existing code or planning the first steps towards GPU migration for your project.
| Session | Time | Activity | Speaker |
|---|---|---|---|
| Morning session | 10am | Start of Day | |
| Introduction, software & hardware landscape, GPU programming recap | |||
| Afternoon session | 1pm | Lunch | |
| 2pm | Profiling, performance and optimisation | ||
| PROMPI Code Deep Dive | Raphael Hirschi | ||
| Close | 5pm | End of Day |
| Session | Time | Activity | Speaker |
|---|---|---|---|
| Morning session: | 9am | Start of Day | |
| Profiling and optimisation exercises | |||
| CETRA Code Deep Dive | Leigh Smith | ||
| 1pm | Lunch | ||
| Afternoon session: | 2pm | Multi-GPU parallelisation | |
| Code Deep Dive | Peter Boyle | ||
| 5pm | End of Day |
| Session | Time | Activity | Speaker |
|---|---|---|---|
| Morning session: | 9am | Start of Day | |
| Multi-GPU exercises & further resources | |||
| JAX Code Deep dive | James Nightingale | ||
| 1pm | Lunch | ||
| Afternoon session: | 2pm | Code clinic & feedback session | |
| 3pm | End of Day |
This is an intermediate level workshop so you will get the most from it if you have programmed a GPU before, however we will be quickly recapping basic GPU programming. If you have never programmed a GPU before, we recommend starting with DiRAC’s Many Ways course.
Then, if you are interested in participating in the workshop with C++, we recommend being comfortable with the material in sections 2.1.1 – 2.1.9 of NVIDIA’s C++ Programming Guide. You may find Mark Harris’ Even Easier Introduction to CUDA a smoother introduction to CUDA than the programming guide. If you prefer video, Tim Warburton’s Introduction to GPU Architecture and Programming Models is a good resource, although it is now fairly old.
Alternatively, if you expect to participate in the workshop with Fortran, we recommend becoming familiar with OpenMP target offloading, at least the target directive and data directive. The Many Ways course mentioned above features a section on OpenMP offloading to NVIDIA GPUs and DiRAC’s OpenMP for GPUs.
We will also be exploring multi-GPU codes with MPI so some familiarity with MPI will be beneficial. DiRAC’s Introduction to MPI can provide a quick introduction to the essential concepts.