Chapter

Computational Science – ICCS 2008

Volume 5103 of the series Lecture Notes in Computer Science pp 213-222

DaStGen—A Data Structure Generator for Parallel C++ HPC Software

  • Hans–Joachim BungartzAffiliated withCarnegie Mellon University, Pittsburgh, PA, USATechnische Universität München
  • , Wolfgang EckhardtAffiliated withCarnegie Mellon University, Pittsburgh, PA, USATechnische Universität München
  • , Miriam MehlAffiliated withCarnegie Mellon University, Pittsburgh, PA, USATechnische Universität München
  • , Tobias WeinzierlAffiliated withCarnegie Mellon University, Pittsburgh, PA, USATechnische Universität München

* Final gross prices may vary according to local VAT.

Get Access

Abstract

Simulation codes often suffer from high memory requirements. This holds in particular if they are memory-bounded, and, with multicore systems coming up, the problem will become even worse as more and more cores have to share the memory connections. To optimise data structures with respect to memory manually is error-prone and cumbersome.

This paper presents the tool DaStGen translating classes declared in C++ syntax and augmented by new keywords into plain C++ code. The tool automates the record optimisation, as it analyses the potential range of each attribute, and as the user can restrict this range further. Herefrom, the generated code stores multiple attributes within one single primitive type. Furthermore, the tool derives user-defined MPI data types for each class. Using the tool reduces any algorithm’s memory footprint, it speeds up memory-bounded applications such as CFD codes, and it hides technical details of MPI applications from the programmer.