TL;DR
Prometheus is a holistic optimization framework that automates the design of high-performance FPGA accelerators by jointly optimizing code transformations, hardware directives, and data movement. By formulating the design space as a Non-Linear Programming (NLP) problem, it achieves up to a 77x performance improvement over state-of-the-art tools and enables seamless scaling across multiple Super Logic Regions (SLRs).
What Problem Does This Paper Address?
Field-Programmable Gate Arrays (FPGAs) offer incredible energy efficiency and performance, but they are notoriously difficult to program. While High-Level Synthesis (HLS) allows developers to use C++ or Python, achieving high "Quality of Results" (QoR) still requires expert-level manual tuning.
The authors identify a "fragmentation" problem in current optimization tools: most frameworks optimize either hardware directives (pragmas) or code structures (like loop tiling) in isolation. Furthermore, many tools assume data is already on-chip, ignoring the massive bottleneck of moving data to and from off-chip memory. Finally, existing tools often struggle to utilize modern multi-die FPGAs, restricting designs to a single Super Logic Region (SLR) and leaving significant hardware resources untouched.
Methods
The core of the paper is Prometheus, a framework that treats FPGA optimization as a unified, global problem rather than a series of independent steps. Key features include:
- Unified Design Space: It integrates task fusion, tiling, loop permutation, and concurrent task execution into a single searchable space.
- NLP-Based Exploration: Instead of using slow brute-force searches or simple heuristics, Prometheus models the hardware constraints (DSPs, BRAM, memory bandwidth) and performance goals as a Non-Linear Programming (NLP) problem. This allows it to find theoretically optimal configurations very quickly.
- Hybrid Execution Model: It dynamically balances shared memory buffering (for data reuse) and dataflow streaming (for parallelism).
- SLR-Aware Scheduling: Prometheus is specifically designed to partition tasks across multiple SLRs on a single chip, managing the complex routing and communication overhead that usually causes automated tools to fail.
- Automated Padding: A clever "padding" strategy for both communication and computation expands the available design space, allowing for more efficient unrolling and wider memory bursts.
Datasets
The framework was evaluated using the PolyBench/C 4.2.1 benchmark suite, which contains standard kernels for linear algebra, image processing, and data mining. Specific kernels tested include:
- Matrix Operations:
2mm,3mm,gemm,symm,trmm. - Vector/Linear Algebra:
atax,bicg,gesummv,mvt. - Decompositions/Updates:
syrk,syr2k. - Custom Kernels: The authors also used
n-madd(multiple matrix additions) to test the framework's ability to handle task concurrency.
Key Insights and Ideas
- Interdependency Matters: The "aha moment" is that pragmas and code transformations are deeply coupled. For example, loop unrolling is only effective if the underlying array is partitioned correctly. By optimizing them together, Prometheus avoids the local optima that trap other tools.
- Dataflow Simplifies the Search: Surprisingly, adding dataflow constraints actually makes the optimization problem easier to solve. Because dataflow requires preserving the order of data between tasks, it prunes many invalid loop permutations, allowing the NLP solver to converge in seconds where previous tools took hours.
- Padding as an Enabler: Standard HLS often restricts unroll factors to divisors of the loop trip count. Prometheus shows that by adding a small amount of "padding" to the data, you can unlock much more efficient hardware unrolling factors that wouldn't otherwise be legal.
Key Results
Prometheus was tested against several state-of-the-art frameworks (AutoDSE, Sisyphus, ScaleHLS, etc.) on an Alveo U55C FPGA:
- Throughput: On the complex
3mmkernel, Prometheus achieved 368.36 GF/s, more than double the performance of Sisyphus (178.97 GF/s) and Stream-HLS (174.00 GF/s). - Massive Speedups: It demonstrated a 77.16x performance improvement over AutoDSE, a leading model-free optimization tool.
- Scalability: Prometheus successfully generated bitstreams that utilized 3 SLRs, whereas other frameworks were limited to a single SLR. This multi-region utilization led to significant performance gains for large-scale tasks.
- Efficiency: The NLP solver is highly efficient; for the
3mmbenchmark, it found an optimal solution in just 21.37 seconds, while the previous state-of-the-art (Sisyphus) timed out after 4 hours.
Limitations and Future Work
- Affine Constraints: Prometheus is currently specialized for affine programs (loops with static bounds and predictable memory access). It cannot yet handle non-affine constructs like indirect addressing (
A[B[i]]) or data-dependent control flow. - Temporal Dependencies: Certain workloads, like time-dependent stencil computations (e.g., Jacobi-2D), involve dependencies that prevent full loop distribution, limiting the framework's current effectiveness on those specific patterns.
- Manual Refinement: While the framework supports "design regeneration" if a bitstream fails to meet timing or routing constraints, the process of tightening specific resource budgets is currently a manual step that the authors hope to automate in the future.
Summary updated