Performance Portability for Heterogeneous Computing

This direction is merged into another direction: hardware-specific optimization. Its last version stays readable and citable here.

Version 1 of 145 papers48 conceptsfrozen 2026-10-04

For decades, high-performance computing (HPC) relied on a relatively stable foundation: clusters of uniform CPUs. In this era, optimizing software was a matter of mastering a single architecture. However, as Moore’s Law has slowed, the field has entered what Jason Lowe-Power and colleagues call a "new golden age" of computer architecture, characterized by a radical shift toward heterogeneity.

Modern supercomputers and cloud environments are no longer uniform. They are a "computing continuum" of diverse hardware, including NVIDIA, AMD, and Intel GPUs, FPGAs, ARM-based edge nodes, and specialized AI accelerators. While this diversity offers massive theoretical throughput, it creates a "portability nightmare": code optimized for one chip often cannot run—or runs poorly—on another.

The research direction of Performance Portability seeks to bridge this gap, allowing developers to write high-level code that achieves near-peak efficiency across any hardware target without manual rewriting.

The Portability Nightmare

The core challenge, as identified by Haohuan Fu and others, is that each hardware type requires distinct programming models and languages. A scientific simulation written in CUDA for NVIDIA GPUs must be entirely rewritten for AMD’s ROCm or Intel’s oneAPI.

This fragmentation creates a massive maintenance burden. As K. H. M. Kwok and G. B. Cerati argue, supporting multiple codebases for different accelerators is unsustainable for long-term software projects. Furthermore, achieving efficiency isn't just about compiling code; it often requires fundamental changes to data structures—such as switching between "Array of Structures" (AoS) and "Structure of Arrays" (SoA)—depending on the hardware's memory architecture Tom Deakin.

Decoupling Logic from Hardware

To solve this, researchers are developing frameworks that decouple high-level mathematical logic from low-level hardware execution.

Linear Operator Abstraction

Libraries like Ginkgo, developed by Hartwig Anzt and his team, treat mathematical operations as abstract "linear operators." The high-level solver logic remains the same regardless of the hardware; only the underlying "kernels" (the specific instructions for the chip) change. Similarly, the ELSI infrastructure provides a unified interface for electronic structure solvers, automatically selecting the most efficient algorithm for a given system.

Symbolic Dataflow and Lazy Evaluation

Newer frameworks like MIRGE take this a step further by using lazy evaluation. Instead of executing operations immediately, the framework builds a symbolic dataflow graph. This allows a compiler to perform complex optimizations—like fusing multiple loops together to save memory bandwidth—specifically tailored to the target hardware, whether it's an Apple laptop or an exascale supercomputer.

Automated Code Generation

Rather than writing hardware-specific code by hand, researchers are moving toward "recipes" that generate code automatically. Johann Rudi and the creators of CG-Kit demonstrate that using high-level templates to generate C++ or Fortran can reduce source code volume by over 60% while maintaining performance across CPUs and GPUs. This approach ensures that when a new chip is released, developers only need to update the generator's "recipe" rather than the entire application.

The Reality of "Write Once, Run Fast"

The ultimate goal is "write once, run fast everywhere," but recent evaluations suggest we are still in a transition period. A study by Joshua Hoke Davis and Pranav Sivaraman found that while modern abstractions like SYCL and Kokkos are highly competitive, achieving peak performance still requires navigating vendor-specific compiler quirks and hardware bottlenecks like register pressure.

To address this, the field is turning to machine learning. Frameworks like those proposed by Flavio Vella and Grigori Fursin use decision trees to automatically select the best tuning parameters for a specific GPU. Meanwhile, tools like SYNPERF use hybrid analytical-ML models to predict how a workload will perform on unseen architectures, helping developers optimize their code before the hardware even arrives.

The Path Forward

As Ian T. Foster and Rosa M. Badía highlight, the future of scientific discovery depends on workflows that can move seamlessly across the "computing continuum." By building robust abstraction layers, automated generators, and intelligent tuning frameworks, the research community is turning the "portability nightmare" into a manageable engineering challenge, ensuring that software can keep pace with the rapid evolution of hardware.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_performance_portability_for_heterogeneou_cc2e80e2,
  title = {Performance Portability for Heterogeneous Computing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/performance-portability-for-heterogeneous-computing/rdr_cc2e80e29bda4bafab539e7cf7cb750f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-03},
}

This exact version (version 1, frozen text):

@misc{lacuna_performance_portability_for_heterogeneou_cc2e80e2_v1,
  title = {Performance Portability for Heterogeneous Computing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/performance-portability-for-heterogeneous-computing/rdr_cc2e80e29bda4bafab539e7cf7cb750f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-03},
}