Skip to main content
QUICK REVIEW

[Paper Review] Stateful Dataflow Multigraphs: A Data-Centric Model for Performance Portability on Heterogeneous Architectures

Tal Ben‐Nun, Johannes de Fine Licht|arXiv (Cornell University)|Feb 27, 2019
Parallel Computing and Optimization TechniquesComputer Science53 references5 citations
TL;DR

This paper introduces Stateful DataFlow Multigraphs (SDFGs), a data-centric intermediate representation that decouples scientific code from low-level optimizations, enabling performance portability across CPUs, GPUs, and FPGAs. By applying extensible graph rewriting and pattern-based transformations to SDFGs, the approach achieves near-peak performance on heterogeneous architectures without modifying the original domain scientist’s code.

ABSTRACT

The ubiquity of accelerators in high-performance computing has driven programming complexity beyond the skill-set of the average domain scientist. To maintain performance portability in the future, it is imperative to decouple architecture-specific programming paradigms from the underlying scientific computations. We present the Stateful DataFlow multiGraph (SDFG), a data-centric intermediate representation that enables separating program definition from its optimization. By combining fine-grained data dependencies with high-level control-flow, SDFGs are both expressive and amenable to program transformations, such as tiling and double-buffering. These transformations are applied to the SDFG in an interactive process, using extensible pattern matching, graph rewriting, and a graphical user interface. We demonstrate SDFGs on CPUs, GPUs, and FPGAs over various motifs --- from fundamental computational kernels to graph analytics. We show that SDFGs deliver competitive performance, allowing domain scientists to develop applications naturally and port them to approach peak hardware performance without modifying the original scientific code.

Motivation & Objective

  • Address the growing complexity of writing performant, portable code for heterogeneous HPC architectures such as GPUs and FPGAs.
  • Decouple domain scientists’ high-level code from low-level performance optimizations to improve maintainability and productivity.
  • Enable performance engineers to optimize code through a structured, extensible transformation interface without altering the original scientific logic.
  • Achieve high performance portability by expressing program semantics and optimizations in a unified, extensible intermediate representation.
  • Support automatic and interactive code transformation via pattern matching and graph rewriting on a dataflow-based model.

Proposed method

  • Represent scientific code as a Stateful DataFlow Multigraph (SDFG), a directed graph with nodes for computations and edges for data movement, capturing fine-grained data dependencies.
  • Use a two-role development model: domain scientists write in high-level languages (e.g., restricted Python/MATLAB), while performance engineers optimize the SDFG via transformations.
  • Apply program transformations such as tiling, double-buffering, and loop fusion using extensible pattern matching and graph rewriting rules.
  • Integrate a graphical user interface to interactively explore and apply transformations to the SDFG representation.
  • Compile optimized SDFGs to target-specific code (e.g., CUDA, OpenMP, OpenCL) while preserving dataflow semantics and performance characteristics.
  • Leverage the SDFG’s multi-level abstraction to reason about data movement from registers to inter-node communication, enabling communication-avoiding optimizations.

Experimental results

Research questions

  • RQ1Can a data-centric intermediate representation enable performance portability across diverse heterogeneous architectures like CPUs, GPUs, and FPGAs?
  • RQ2To what extent can performance engineers optimize code through transformations on an SDFG without modifying the original scientific code?
  • RQ3How effective is the SDFG model in expressing and optimizing complex data movement patterns across memory hierarchies and accelerators?
  • RQ4Can the separation of concerns between domain scientists and performance engineers be maintained while achieving near-peak performance on multiple platforms?
  • RQ5How does the extensibility of SDFG transformations compare to existing models in supporting new optimization patterns and hardware targets?

Key findings

  • SDFGs successfully decouple scientific logic from performance tuning, allowing domain scientists to write code in high-level languages without performance or portability trade-offs.
  • The SDFG model enables performance portability by allowing the same input code to be compiled to achieve near-peak performance on CPUs, GPUs, and FPGAs.
  • Graph rewriting and pattern-based transformations on SDFGs support complex optimizations such as tiling and double-buffering, which are critical for memory bandwidth and latency reduction.
  • The approach achieves competitive performance compared to hand-optimized implementations, demonstrating that high-level abstractions can match low-level optimizations when combined with extensible transformation systems.
  • The separation of concerns between domain scientists and performance engineers is preserved, with performance engineers able to tune code via SDFG transformations without understanding the domain-specific mathematics.
  • The SDFG model generalizes and extends existing models like Halide, Legion, and the polyhedral model by supporting arbitrary data movement patterns and multi-level optimization across heterogeneous targets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.