Skip to main content
QUICK REVIEW

[Paper Review] Transformations of High-Level Synthesis Codes for High-Performance Computing

Johannes de Fine Licht, Maciej Besta|arXiv (Cornell University)|May 21, 2018
Parallel Computing and Optimization TechniquesComputer Science9 citations
TL;DR

This paper presents a comprehensive set of optimizing transformations for high-level synthesis (HLS) codes targeting high-performance computing on spatial architectures like FPGAs. It categorizes pipelining, memory, and scalability transformations, demonstrating up to 29,950× speedup over naive HLS implementations through systematic code optimization and open-source reference kernels.

ABSTRACT

Spatial computing architectures promise a major stride in performance and energy efficiency over the traditional load/store devices currently employed in large scale computing systems. The adoption of high-level synthesis (HLS) from languages such as C++ and OpenCL has greatly increased programmer productivity when designing for such platforms. While this has enabled a wider audience to target spatial computing architectures, the optimization principles known from traditional software design are no longer sufficient to implement high-performance codes, due to fundamentally distinct aspects of hardware design, such as programming for deep pipelines, distributed memory resources, and scalable routing. To alleviate this, we present a collection of optimizing transformations for HLS, targeting scalable and efficient architectures for high-performance computing (HPC) applications. We systematically identify classes of transformations (pipelining, scalability, and memory), the characteristics of their effect on the HLS code and the resulting hardware (e.g., increasing data reuse or resource consumption), and the objectives that each transformation can target (e.g., resolve interface contention, or increase parallelism). We show how these can be used to efficiently exploit pipelining, on-chip distributed fast memory, and on-chip dataflow, allowing for massively parallel architectures. To quantify the effect of various transformations, we cover the optimization process of a sample set of HPC kernels, provided as open source reference codes. We aim to establish a common toolbox to guide both performance engineers and compiler engineers in tapping into the performance potential offered by spatial computing architectures using HLS.

Motivation & Objective

  • Address the performance gap between naive HLS codes and high-performance spatial architectures by identifying hardware-aware optimizations.
  • Systematically categorize transformations applicable to HLS for HPC workloads, focusing on pipelining, memory hierarchy, and scalability.
  • Provide a practical, reusable toolbox of transformations to guide performance and compiler engineers in optimizing HLS-generated hardware.
  • Demonstrate the effectiveness of these transformations through end-to-end optimization of HPC kernels, including stencil, matrix multiplication, and N-body problems.

Proposed method

  • Identify and classify key HLS transformations into three categories: pipelining, memory optimization, and scalability, based on their impact on hardware resource usage and performance.
  • Map traditional CPU/GPU compiler optimizations to their relevance in HLS, distinguishing those that apply directly, those requiring adaptation, and those irrelevant due to hardware differences.
  • Apply transformations such as loop pipelining, array partitioning, data reuse enhancement, and interface contention resolution to optimize kernel performance.
  • Use pragma-based HLS toolflows (Intel OpenCL and Xilinx Vivado HLS) to implement and evaluate transformations on real HPC kernels.
  • Publish optimized reference codes on GitHub to serve as benchmarks and educational resources for performance engineering.
  • Quantify performance improvements using speedup metrics relative to naive HLS implementations across multiple HPC kernels.

Experimental results

Research questions

  • RQ1Which traditional compiler optimizations are directly applicable or require adaptation when targeting high-level synthesis for spatial architectures?
  • RQ2How can pipelining, memory hierarchy management, and dataflow optimization be systematically applied to HLS codes to achieve high performance on FPGAs?
  • RQ3What is the cumulative performance impact of applying a suite of hardware-aware transformations to HPC kernels in HLS?
  • RQ4To what extent do existing HLS compilers automatically apply these optimizations, and what role do manual transformations play in achieving peak performance?
  • RQ5Can a unified transformation toolbox be established to guide both performance engineers and compiler developers in optimizing HLS-generated hardware?

Key findings

  • The application of hardware-aware transformations led to cumulative speedups of up to 29,950× over naive HLS implementations on HPC kernels.
  • Traditional software optimizations such as loop invariant code motion, loop normalization, and loop skewing remain relevant and beneficial in the HLS context.
  • Transformations like pipelining, memory partitioning, and data reuse significantly improve throughput and reduce latency on FPGA-based spatial architectures.
  • Many standard CPU/GPU compiler optimizations (e.g., function memoization, scalar replacement) are directly applicable to HLS with minimal adaptation.
  • A significant number of traditional compiler transformations (e.g., supercompiling, graph partitioning, VLIW) are infeasible or irrelevant in HLS due to long synthesis times and lack of instruction-level parallelism.
  • The open-source reference codes demonstrate that performance gains are not automatically achieved by HLS compilers and require deliberate, targeted 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.