Lifting C Semantics for Dataflow Optimization

Alexandru Calotoiu, Tal Ben-Nun, Grzegorz Kwasniewski, Johannes de Fine Licht, Timo Schneider +2 more
12/22/2021
cs.PLcs.DCcs.PF

Official code: spcl/c2dace (3 stars, C, BSD-3-Clause, last commit 2023-08-23).

Abstract

C is the lingua franca of programming and almost any device can be programmed using C. However, programming mod-ern heterogeneous architectures such as multi-core CPUs and GPUs requires explicitly expressing parallelism as well as device-specific properties such as memory hierarchies.

Show full abstract

The resulting code is often hard to understand, debug, and modify for different architectures. We propose to lift C programs to a parametric dataflow representation that lends itself to static data-centric analysis and enables automatic high-performance code generation. We separate writing code from optimizing for different hardware: simple, portable C source code is used to generate efficient specialized versions with a click of a button. Our approach can identify parallelism when no other compiler can, and outperforms a bespoke parallelized version of a scientific proxy application by up to 21%.

View on arXivView PDF

Code Implementations(1)

spcl/c2daceOfficial100%
BSD-3-Clause
32C, PythonJun 24, 20213 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{calotoiu2021lifting,
  title  = {Lifting C Semantics for Dataflow Optimization},
  author = {Alexandru Calotoiu and Tal Ben-Nun and Grzegorz Kwasniewski and Johannes de Fine Licht and Timo Schneider and Philipp Schaad and Torsten Hoefler},
  year   = {2021},
  eprint = {2112.11879},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.11879}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.11879.svg)](https://codeofpaper.com/paper/2112.11879)

Discussion