Cargando…

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

<!--HTML-->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-s...

Descripción completa

Detalles Bibliográficos
Autor principal: VYSKOČIL, Jiří
Lenguaje:eng
Publicado: 2016
Materias:
Acceso en línea:http://cds.cern.ch/record/2135324
_version_ 1780949942328623104
author VYSKOČIL, Jiří
author_facet VYSKOČIL, Jiří
author_sort VYSKOČIL, Jiří
collection CERN
description <!--HTML-->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.
id cern-2135324
institution Organización Europea para la Investigación Nuclear
language eng
publishDate 2016
record_format invenio
spelling cern-21353242022-11-02T22:32:26Zhttp://cds.cern.ch/record/2135324engVYSKOČIL, JiříI - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templatesinverted CERN School of Computing 2016inverted CSC<!--HTML-->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.oai:cds.cern.ch:21353242016
spellingShingle inverted CSC
VYSKOČIL, Jiří
I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title_full I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title_fullStr I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title_full_unstemmed I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title_short I - Template Metaprogramming for Massively Parallel Scientific Computing - Expression Templates
title_sort i - template metaprogramming for massively parallel scientific computing - expression templates
topic inverted CSC
url http://cds.cern.ch/record/2135324
work_keys_str_mv AT vyskociljiri itemplatemetaprogrammingformassivelyparallelscientificcomputingexpressiontemplates
AT vyskociljiri invertedcernschoolofcomputing2016