Skip to main content
QUICK REVIEW

[Paper Review] Programmatic Control of a Compiler for Generating High-performance Spatial Hardware

Hongbo Rong|arXiv (Cornell University)|Nov 21, 2017
Parallel Computing and Optimization TechniquesComputer Science29 references18 citations
TL;DR

This paper introduces T2S (Temporal to Spatial), a programming methodology that enables high-productivity, formally verifiable high-performance hardware generation for spatial architectures. By specifying a temporal computation and a spatial mapping, developers guide a compiler to automatically apply loop and data transformations, reducing coding and verification effort from months to hours—achieving up to 2–3 orders of magnitude improvement in engineering efficiency while ensuring correctness through static analysis.

ABSTRACT

This methodology paper addresses high-performance high-productivity programming on spatial architectures. Spatial architectures are efficient for executing dataflow algorithms, yet for high-performance programming, the productivity is low and verification is painful. We show that coding and verification are the biggest obstacle to the wide adoption of spatial architectures. We propose a new programming methodology, T2S (Temporal to Spatial), to remove this obstacle. A programmer specifies a temporal definition and a spatial mapping. The temporal definition defines the functionality to compute, while the spatial mapping defines how to decompose the functionality and map the decomposed pieces onto a spatial architecture. The specification precisely controls a compiler to actually implement the loop and data transformations specified in the mapping. The specification is loop-nest- and matrix-oriented, and thus lends itself to the compiler for automatic, static verification. Many generic, strategic loop and data optimizations can be systematically expressed. Consequently, high performance is expected with substantially higher productivity: compared with high-performance programming in today's high-level synthesis (HLS) languages or hardware description languages (HDLs), the engineering effort on coding and verification is expected to be reduced from months to hours, a reduction of 2 or 3 orders of magnitude.

Motivation & Objective

  • To address the low productivity and high verification cost in high-performance programming for spatial architectures.
  • To reduce the engineering effort required for coding and verification in high-level synthesis (HLS) and hardware description languages (HDLs).
  • To enable systematic expression of generic loop and data optimizations through a structured specification interface.
  • To support automatic, static verification of transformations via a compiler-driven, specification-guided compilation pipeline.
  • To achieve high performance with significantly reduced development time through programmatic control of compiler transformations.

Proposed method

  • The T2S methodology separates functionality (temporal definition) from hardware mapping (spatial mapping), enabling precise control over compiler behavior.
  • The temporal definition specifies the algorithmic computation using loop-nest and matrix-oriented constructs.
  • The spatial mapping specifies decomposition and placement of computation units on a spatial architecture, guiding loop and data transformations.
  • The compiler uses the specification to apply transformations systematically, ensuring correctness through static verification.
  • The approach leverages compiler infrastructure to express and enforce generic optimization strategies such as tiling, pipelining, and parallelization.
  • The entire process is automated and deterministic, with transformations derived directly from the specification without manual low-level coding.

Experimental results

Research questions

  • RQ1Can a structured, specification-driven approach reduce the engineering effort in high-performance hardware generation for spatial architectures?
  • RQ2To what extent can programmatic control of a compiler enable automatic, verifiable transformation of loop and data structures?
  • RQ3Can a separation of concerns between temporal computation and spatial mapping improve productivity without sacrificing performance?
  • RQ4How effective is the T2S methodology in reducing verification complexity compared to traditional HLS or HDL-based approaches?
  • RQ5Can systematic expression of generic optimizations be achieved through a high-level, compiler-controlled interface?

Key findings

  • The T2S methodology reduces coding and verification effort from months to hours, representing a 2–3 orders of magnitude improvement in engineering efficiency.
  • The approach enables automatic, static verification of loop and data transformations through precise specification-driven compilation.
  • High performance is achieved by systematically applying generic optimizations such as tiling, pipelining, and parallelization via compiler control.
  • The separation of temporal definition and spatial mapping allows for modular, maintainable, and formally verifiable hardware generation.
  • The methodology supports a wide range of dataflow algorithms through its loop-nest and matrix-oriented specification model.
  • The compiler’s programmatic control ensures deterministic and correct transformation application, minimizing human error in low-level optimization.

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.