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

C Language Extensions for Hybrid CPU/GPU Programming with StarPU

Ludovic Courtès 1
1 RUNTIME - Efficient runtime systems for parallel architectures
Inria Bordeaux - Sud-Ouest, UB - Université de Bordeaux, CNRS - Centre National de la Recherche Scientifique : UMR5800
Abstract : Modern platforms used for high-performance computing (HPC) include machines with both general-purpose CPUs, and "accelerators", often in the form of graphical processing units (GPUs). StarPU is a C library that addresses this problem by providing users with ways to define "tasks" to be executed on CPUs or GPUs, along with the dependencies among them, and by automatically scheduling them over all the available processing units. In doing so, it also relieves programmers from the need to know the underlying architecture details: it adapts to the available CPUs and GPUs, and automatically transfers data between main memory and GPUs as needed. While StarPU's approach is successful at addressing run-time scheduling issues, being a C library makes for a poor and error-prone programming interface. This paper presents an effort started in 2011 to promote some of the concepts exported by the library as C language constructs, by means of an extension of the GCC compiler suite. Our main contribution is the design and implementation of language extensions that map to StarPU's task programming paradigm. We argue that the proposed extensions make it easier to get started with StarPU,eliminate errors that can occur when using the C library, and help diagnose possible mistakes. We conclude on future work.
Complete list of metadata

Contributor : Ludovic Courtès Connect in order to contact the contributor
Submitted on : Tuesday, April 2, 2013 - 5:48:11 PM
Last modification on : Tuesday, February 9, 2021 - 3:12:02 PM
Long-term archiving on: : Wednesday, July 3, 2013 - 4:09:13 AM


Files produced by the author(s)


  • HAL Id : hal-00807033, version 1
  • ARXIV : 1304.0878


Ludovic Courtès. C Language Extensions for Hybrid CPU/GPU Programming with StarPU. [Research Report] RR-8278, 2013, pp.21. ⟨hal-00807033v1⟩



Record views


Files downloads