Modern C++ Software Design (Advanced)

Oct 21, 2021: Update of information concerning lunch and breaks.

This advanced C++ training is a course on software design with the C++ programming language. The focus of the training are the essential C++ software development principles, concepts, idioms, and best practices, which enable programmers to create professional, high-quality code. Additionally, the course gives insight into kernel development with C++. The course provides insight into different design strategies (object-oriented programming, functional programming, generic programming) and the philosophy of “Modern C++” and teaches guidelines to develop mature, robust, maintainable, and efficient C++ code.

Please note that this course is not a tutorial on any specific C++ library or tool (as for instance OpenFoam or CUDA), but teaches good, mature software design with the C++ itself.

Since 2020 we provide two types of C++ courses, each offered two times per year:

  • intermediate: Mar. 2-5, 2021, and July 6-9, 2021
  • advanced: May 4-7, 2021, and Nov. 23-26, 2021 (this course)

with two different levels of prerequisites.

Veranstaltungsort

HLRS, University of Stuttgart
Nobelstraße 19
70569 Stuttgart, Germany
Room 0.439 / Rühle Saal
Location and nearby accommodations

Veranstaltungsbeginn

23. Nov 2021
08:30

Verstaltungsende

26. Nov 2021
16:30

Sprache

Deutsch

Einstiegslevel

Fortgeschritten

Themenbereiche

Programmiersprachen für wissenschaftliches Rechnen

Zurück zur Liste

On-site course & COVID rules

Although this event is a training course, another important aspect is the scientific exchange between participants, which did not work as well as we hoped in our online courses.

The concept to enable this communication among our participants consists of

  • common coffee and lunch breaks, and
  • if you want and permitted by COVID-19 rules in November, working together in groups of two during the exercises.

For your security, we allow only completely vaccinated, or fully recovered, or participants tested negatively on COVID-19 on all days. In the course room and when not eating/drinking, FFP2 masks are required. See here for details. Of course, these rules also apply to the instructors.

Prerequisites and content levels

Prerequisites

Prerequisites Advanced C++ (this course):

Course participants should have basic UNIX/Linux knowledge (login with secure shell, shell commands, simple scripts, editor vi or emacs). At least two to three years of experience with the language is needed. This includes a solid knowledge of the syntax of C++, experience with both template-based and inheritance-based designs and some experience with design patterns.

Prerequisites Intermediate C++ (other course type):

Course participants should have basic UNIX/Linux knowledge (login with secure shell, shell commands, simple scripts, editor vi or emacs). At least one year of experience with the language is needed. This includes a good understanding of the basic mechanics (header files, source files, compilation), good knowledge of the syntax of C++, and some experience with templates and inheritance.

Please choose the course that fits best to you!

Content levels
  • Beginner: 3 hours
  • Intermediate: 10 hours
  • Advanced: 14 hours

Learn more about course curricula and content levels.

Gained Skills

After this course, participants will:

  • have a detailed understanding of the essential OO design principles
  • have gained knowledge about fundamental C++ programming concepts and idioms
  • be able to properly design classes and class interfaces
  • know about the importance of exception safe programming
  • have gained insight into kernel development with C++
  • avoid the usual pitfalls in the context of inheritance
  • comprehend the advantages of value-based design
  • understand the virtue of clean code

Programming Tasks

In case of an on-site course, participants will be provided Linux machines. For that reason some familiarity with Linux is expected (login with secure shell, shell commands, simple scripts, editor vi or emacs). Alternatively, participants will be able to use their own machines. Any operating system (Windows, Linux, MacOS, ...), any IDE/editor (MS Visual Studio, CLion, vi, emacs, ...) and any compiler capable of at least C++14 (GCC, Clang, MSVC, ...) can be used. In case of a remote course, participants are expected to use their own machines. The programming tasks, including both Makefiles and CMake files, will be distributed before the course.

Program

Local registration (8:30 - 9:00)

1st day course schedule (9:00 - 17:30)

  • The Basic Design Principles
    • Defining a Goal
    • The SOLID Principles
  • Concepts and the STL
    • STL Allocators
    • constexpr

2nd day schedule (9:00 - 17:30)

  • Advanced Templates
    • Type Traits
    • SFINAE
    • Concepts
    • CRTP
    • Forwarding References

3rd day schedule (9:00 - 17:30)

  • Dynamic Polymorphism
    • The Perils of Inheritance
    • Value Semantics
    • Public Inheritance
    • Surprises in Object Hierarchies
  • Design Patterns
    • Strategy
    • Visitor
    • Type Erasure

4th day schedule (9:00 - 16:30)

  • Design of HPC Components
    • Choice of the Proper Data Structures
    • Kernel Design
    • Loop Unrolling
    • SIMD Vectorization

Language

The course language is German. The slides are in English.

Teacher

Klaus Iglberger (External)

Handouts

Each participant will get a paper copy of all slides.

Registration

Registration is closed.

If you want a similar course in English, then please look at the 3- or 4-day advanced C++ courses at LRZ , the 4 day course at VSC in Vienna or directly on Klaus Iglberger's course page.

Deadline

for registration is November 7, 2021 (extended deadline).
Late registrations after the deadline are still possible but maybe with reduced quality of the handouts.

Fee

Students without Diploma/Master: 35 EUR.
Students with Diploma/Master (PhD students) at German universities: 75 EUR.  
Members of German universities and public research institutes: 75 EUR.
Members of universities and public research institutes within EU or PRACE member countries: 150 EUR.   
Members of other universities and public research institutes: 300 EUR.  
Others: 780 EUR.

Our course fee includes soft drinks in breaks (in classroom courses only). See below for details.

Organization

Breaks

There will be several shorter breaks and a lunch break every day. Unfortunately, due to the COVID-19 pandemic, we can only offer water (carbonized and natural) and apple juice in single bottles in breaks but no coffee. If you would like to drink coffee you might bring it in a thermos yourself or you can go to a nearby bakery. All bottles that contain liquids must be safely lockable by a screw cap to protect the laptops and underfloor in the lecture hall.

We recommend that you bring your own lunch. As of today, due to COVID-19 restrictions, there will be no possibility to have lunch at the canteen. We are only aware of the following two publicly accessible nearby places for lunch:

Travel Information and Accommodation

see our How to find us page.

PRACE PATC and bwHPC-C5

HLRS is part of the Gauss Centre for Supercomputing (GCS), which is one of the six PRACE Advanced Training Centres (PATCs) that started in Feb. 2012.
HLRS is also member of the Baden-Württemberg initiative bwHPC-C5.
This course is provided within the framework of the bwHPC-C5 user support. This course is not part of the PATC curriculum and is not sponsored by the PATC program.

Contact

Andreas Ruopp phone 0711 685 87259, ruopp(at)hlrs.de
Rolf Rabenseifner phone 0711 685 65530, rabenseifner(at)hlrs.de
Tobias Haas phone 0711 685 87223, tobias.haas(at)hlrs.de

Shortcut-URL & Course number

http://www.hlrs.de/training/2021/CPP4