Published December 1, 2021 | Version v1
Lesson Open

Node-Level Performance Engineering

  • 1. RRZE, Uni. Erlangen

Description

This online course organised in cooperation with NHR@FAU covers performance engineering approaches on the compute node level. Even application developers who are fluent in OpenMP and MPI often lack a good grasp of how much performance could at best be achieved by their code.

This is because parallelism takes us only half the way to good performance.

Even worse, slow serial code tends to scale very well, hiding the fact that resources are wasted. This course conveys the required knowledge to develop a thorough understanding of the interactions between software and hardware. This process must start at the core, socket, and node level, where the code gets executed that does the actual computational work. We introduce the basic architectural features and bottlenecks of modern processors and compute nodes.

Pipelining, SIMD, superscalarity, caches, memory interfaces, ccNUMA, etc., are covered. A cornerstone of node-level performance analysis is the Roofline model, which is introduced in due detail and applied to various examples from computational science. We also show how simple software tools can be used to acquire knowledge about the system, run code in a reproducible way, and validate hypotheses about resource consumption. Finally, once the architectural requirements of a code are understood and correlated with performance measurements, the potential benefit of code changes can often be predicted, replacing hope-for-the-best optimizations by a scientific process.

The course is a PRACE training event.

  • Introduction
    • Basic architecture of multicore systems: pipelines, SIMD, caches, sockets, memory
    • The important role of system topology
  • Tools: topology & affinity in multicore environments
    • likwid-topology and likwid-pin, alternatives
  • Roofline model basics         
    • Model assumptions and construction
    • Simple examples
    • Limitations of the Roofline model
  • Tools: hardware performance counters
    • Why hardware performance counters?
    • likwid-perfctr
    • Validating performance models
  • Optimal use of parallel resources
    • Single Instruction Multiple Data (SIMD)
    • Cache-coherent Non-Uniform Memory Architecture (ccNUMA)
  • Roofline case studies
    • Tall & skinny dense matrix-matrix multiplication
    • Sparse matrix-vector multiplication
    • Jacobi (stencil) smoother
  • Basics of performance engineering
    • PE process
    • Code profiling
    • Proper benchmarking
    • Reproducibility and documentation
  • Beyond Roofline: The ECM performance model (optional)

Prerequisites

You have to be able to handle a Linux command line and file editing remotely. Basic knowledge of C, C++, or Fortran programming and of OpenMP is required.

Hands-On

Exercises will be done on a cluster at NHR@FAU. For the exercises you need an SSH client on your local computer.

Notes

https://moodle.nhr.fau.de/course/view.php?id=4

Files

00_Agenda.pdf

Files (10.6 MB)

Name Size Download all
md5:fe2d7f1c83e3ebe536b85380748e452e
345.8 kB Preview Download
md5:6e4b54e49732f1a59f09d6c2aaf34b52
230.6 kB Preview Download
md5:a5399e32f31aa5b976c11ae963ffa6c6
2.0 MB Preview Download
md5:1346af980fc360af435c69b778083419
829.8 kB Preview Download
md5:c84fafef9fc077d5b705463ba14ad345
807.4 kB Preview Download
md5:28a3d4a5f350f0066e2dd44a65f48e1d
362.9 kB Preview Download
md5:d89e2a1f34b00e8d0d09bc3deeb668c6
1.1 MB Preview Download
md5:306e27aaa75e36331e0d50ccc10b8f69
1.1 MB Preview Download
md5:b88fc9adef6d4b3adf6ed99e6c472ecc
432.3 kB Preview Download
md5:5d3c197cf8f80560faa92e86af2f119b
319.6 kB Preview Download
md5:c920d7a452330e8b997d1e30268d15b1
542.0 kB Preview Download
md5:09bb421f1452ab0a33a8f5ac34fd8035
1.5 MB Preview Download
md5:36bc7e188424ec59dc8f57437d1e3193
508.8 kB Preview Download
md5:4e7de2d094ff3366dbec5cc93bad3390
333.1 kB Preview Download
md5:382157ebd11a3bc63827ce108adbdbd8
11.0 kB Download
md5:6fed9d878a3fcce38b9c9dbe2a5ac42b
10.3 kB Download
md5:7c4dec31d86f11bd4fc0babccd461829
175.6 kB Preview Download