HAL will be down for maintenance from Friday, June 10 at 4pm through Monday, June 13 at 9am. More information
Skip to Main content Skip to Navigation
Book sections

XPU: A C++ Metaprogramming Approach to Ease Parallelism Expression: Parallelization Methodology, Internal Design and Practical Application

Nader Khammassi 1 Jean-Christophe Le Lann
STIC - Département STIC [Brest], Lab-STICC - Laboratoire des sciences et techniques de l'information, de la communication et de la connaissance
Abstract : The continuous proliferation of multicore architectures has placed developers under great pressure to parallelize theirapplications in order to take advantage of such platforms. Unfortunately, traditional low-level programming modelsexacerbate the difficulties of building large and complex parallel applications. Consequently, programmers are facing acomplex productivity performance trade-off where they should extract enough parallelism to justify the use of a dedicatedparallel programming library. High-level parallel programming models are in high-demand as they reduce the burdens ondevelopers significantly and provide enough abstraction to accommodate hardware heterogeneity.In this chapter, we present a task-based parallel programming model named XPU which aims to ease parallelismexpression without sacrificing performances. Contrary to many parallel programming models which introduce newlanguages, extend existing language or define compiler annotations and thus require specialized compilers, virtualmachines or extra-hardware... XPU is a pure software technology entirely based on the traditional C++ language andrequires nothing more than a standard C++ compiler to be used, and therefore, improves learning curve steepness and iseasily portable to many systems.We show how XPU exploits C++ metaprogramming techniques to ease expression of several types of parallelismincluding task, data and temporal parallelism at all levels of granularity inside a single structured and homogeneousprogramming model. We describe the XPU parallelization methodology and we show through a practical signal processingapplication how we can apply this methodology to parallelize a sequential program at the cost of a little amount of parallelparadigms-related extra-code while reusing the sequential legacy code without significant alteration. This case studydemonstrates the ability of the XPU programming model to provide high programmability to improve programmerproductivity while delivering high performances.
Complete list of metadata

Contributor : Annick Billon-Coat Connect in order to contact the contributor
Submitted on : Wednesday, December 3, 2014 - 3:37:21 PM
Last modification on : Monday, March 14, 2022 - 11:08:12 AM


  • HAL Id : hal-01090466, version 1


Nader Khammassi, Jean-Christophe Le Lann. XPU: A C++ Metaprogramming Approach to Ease Parallelism Expression: Parallelization Methodology, Internal Design and Practical Application. Parallel Programming: Practical Aspects, Models and Current Limitations, NOVA publishers, pp.175-198, 2014, 978-1-60741-263-2. ⟨hal-01090466⟩



Record views