[Paper Review] When HLS Meets FPGA HBM: Benchmarking and Bandwidth Optimization
This paper proposes HLS-based optimization techniques to improve effective bandwidth on HBM-equipped FPGAs by addressing limitations in high-level synthesis tools when accessing multiple HBM memory channels. By introducing BICA (Burst-Interleaved Channel Access) and BIPA (Burst-Interleaved PE Architecture), the authors achieve 2.4X to 3.8X improvement in effective bandwidth across memory-bound applications like bucket sort and binary search on Intel Stratix 10 MX and Xilinx Alveo U280 platforms.
With the recent release of High Bandwidth Memory (HBM) based FPGA boards, developers can now exploit unprecedented external memory bandwidth. This allows more memory-bounded applications to benefit from FPGA acceleration. However, we found that it is not easy to fully utilize the available bandwidth when developing some applications with high-level synthesis (HLS) tools. This is due to the limitation of existing HLS tools when accessing HBM board's large number of independent external memory channels. In this paper, we measure the performance of three recent representative HBM FPGA boards (Intel's Stratix 10 MX and Xilinx's Alveo U50/U280 boards) with microbenchmarks and analyze the HLS overhead. Next, we propose HLS-based optimization techniques to improve the effective bandwidth when a PE accesses multiple HBM channels or multiple PEs access an HBM channel. Our experiment demonstrates that the effective bandwidth improves by 2.4X-3.8X. We also provide a list of insights for future improvement of the HBM FPGA HLS design flow.
Motivation & Objective
- Address the performance gap in memory-bound FPGA applications due to inefficient HLS toolchain support for HBM's multi-channel architecture.
- Identify and analyze HLS overheads in accessing multiple HBM channels on recent FPGA boards (Stratix 10 MX, Alveo U50, U280).
- Develop HLS-optimized techniques to improve effective bandwidth when a single PE accesses multiple HBM channels or multiple PEs share access to a single channel.
- Provide actionable insights for HLS tool vendors to enhance support for HBM-based FPGA design flows.
Proposed method
- Design and evaluate microbenchmarks to measure baseline performance across three HBM2 FPGA platforms under various access patterns.
- Introduce BICA (Burst-Interleaved Channel Access) to enable efficient burst access to multiple HBM PCs from a single PE using virtual channels and optimized FIFO management.
- Propose BIPA (Burst-Interleaved PE Architecture) to allow multiple PEs to share access to a single HBM PC, reducing arbitration overhead and improving bandwidth utilization.
- Implement and evaluate both techniques in HLS using C-based kernels on Xilinx and Intel HBM FPGA platforms.
- Use a custom crossbar design to enable many-to-many PE-to-PC mappings, with resource and performance trade-offs analyzed.
- Introduce virtual channel abstraction in HLS to reduce FIFO control logic and FPGA resource consumption, enabling scalable memory access patterns.
Experimental results
Research questions
- RQ1Why do existing HLS tools fail to fully utilize the high bandwidth of HBM2 FPGA platforms despite their theoretical peak of ~400 GB/s?
- RQ2What are the key architectural and HLS-specific bottlenecks in achieving high effective bandwidth when accessing multiple HBM memory channels?
- RQ3How can HLS-based designs be optimized to improve bandwidth when a single processing element accesses multiple HBM channels?
- RQ4What are the performance and resource trade-offs when multiple processing elements share access to a single HBM channel in HLS-generated designs?
- RQ5What design flow improvements are needed in HLS tools to better support HBM2 FPGA memory architectures?
Key findings
- The effective bandwidth of memory-bound applications on HBM2 FPGAs is significantly limited by HLS toolchain overhead, with observed bandwidths as low as 2.3 GB/s for bucket sort on Alveo U280.
- BICA improves effective bandwidth by up to 3.8X for applications like binary search and depth-first search by enabling efficient burst access across multiple HBM PCs.
- BIPA achieves up to 3.8X effective bandwidth improvement on Alveo U280 by allowing 16 PEs to share access to a single HBM PC, overcoming HLS limitations in multi-PE access.
- On Stratix 10 MX, the effective bandwidth for bucket sort improves from 137 GB/s (baseline) to 370 GB/s using BICA, achieving 2.7X speedup.
- The study identifies that deep memory pipelining in current HLS tools degrades performance in latency-bound applications like binary search, suggesting a need for low-latency memory pipeline options.
- Insights for future HLS tooling include customizable crossbar templates, virtual channel support for FIFO sharing, and low-latency memory pipeline options to improve usability and performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.