Learn · CERN

Talk1 h 4 min

I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates

Jiří VYSKOČIL · CERN

Watch At CERN

About

Large scale scientific computing raises questions on different levels ranging from the fomulation of the problems to the choice of the best algorithms and their implementation for a specific platform. There are similarities in these different topics that can be exploited by modern-style C++ template metaprogramming techniques to produce readable, maintainable and generic code. Traditional low-level code tend to be fast but platform-dependent, and it obfuscates the meaning of the algorithm. On the other hand, object-oriented approach is nice to read, but may come with an inherent performance penalty.

These lectures aim to present he basics of the Expression Template (ET) idiom which allows us to keep the object-oriented approach without sacrificing performance. We will in particular show to to enhance ET to include SIMD vectorization. We will then introduce techniques for abstracting iteration, and introduce thread-level parallelism for use in heavy data-centric loads. We will show to to apply these methods in a way which keeps the "front end" code very readable. --- LECTURE 1 In this lecture, we will have a quick look at the basics of Template Metaprogramming - how does the computing handle "types", and how these types map more or less naturally to physical quantities. We will then introduce the idea of using Expression Templates (ET) as a means to bride the gap between the low-level high-performance approach, and the object-oriented, readable but often severely under-performing approach. We will study the structure of the ETs, and show the basic steps needed to build them..

0:00:00 Slide 1

0:01:07 Slide 2

0:02:20 Slide 3

0:03:33 Slide 4

0:05:05 Slide 5

0:06:04 Slide 6

0:08:03 Slide 7

0:08:22 Slide 8

0:09:58 Slide 9

0:12:42 Slide 10

The talk

  1. I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates 2016-02-29 · 1 h 4 min · CERN's player

Credits and licence

Institution
CERN
Department
inverted CSC
Speaker
Jiří VYSKOČIL
Year
2016
Language
English
Subjects
Computer science
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Tweens profiles and older, judged from what the source says about it. How courses are placed