When developing a numerical simulation code with high performance and efficiency in mind, one is often compelled to accept a trade-off between using a native-hardware programming model (like CUDA or OpenCL), which has become tremendously challenging, and loosing some cross-platform portability.
Porting a large existing legacy code to a modern HPC platform, and developing a new simulation code, are two different tasks that may be benefit from a high-level programming model, which abstracts the low-level hardware details.
This training presents existing high-level programming solutions that can preserve at best as possible performance, maintainability and portability across the vast diversity of modern hardware architectures (multicore CPU, manycore, GPU, ARM, ..) and software development productivity.
We will first review the basics of the OpenACC programming model, as well as performance monitoring tools for Nvidia GPU. Several detailed examples in C/C++/Fortran will be used in hands-on session on the high-end hardware platform Ouessant (http://www.idris.fr/ouessant/), equipped with Nvidia Pascal GPUs.
We will then provide an introduction to the high-level C++ programming model Kokkos https://github.com/kokkos, and show basic code examples to illustrate the following concepts through hands-on sessions:
- hardware portability: design an algorithm once and let the Kokkos back-end (OpenMP, CUDA, ...) actually derive an efficient low-level implementation;
- efficient architecture-aware memory containers: what is a Kokkos::view;
- revisit fundamental parallel patterns with Kokkos: parallel for, reduce, scan, ... ;
- explore some mini-applications.
Some basic knowledge of the CUDA programming model and of C++.
More info about Maison de la Simulation: http://www.maisondelasimulation.fr
List of hotels: http://www.maisondelasimulation.fr/Phocea/Page/index.php?id=53
Registration for all PATC course is free.
If you have any questions, please consult the course forum page or click on the contact link on the left to send an email to the local organisers.