Skip to main content
QUICK REVIEW

[Paper Review] Revisiting FPGA Acceleration of Molecular Dynamics Simulation with Dynamic Data Flow Behavior in High-Level Synthesis

Jason Cong, Zhenman Fang|arXiv (Cornell University)|Nov 11, 2016
Embedded Systems Design TechniquesComputer Science11 references9 citations
TL;DR

This paper revisits FPGA acceleration of molecular dynamics (MD) simulations using high-level synthesis (HLS), identifying that unsupported dynamic (conditional) data flow behavior in HLS tools limits performance by 2× compared to RTL. By introducing an automated RTL template-based flow to enable data-driven streaming and PE array customization, the authors achieve 19.4× speedup and 39× energy efficiency over a 12-core CPU on a Convey HC1ex FPGA for the ApoA1 benchmark.

ABSTRACT

Molecular dynamics (MD) simulation is one of the past decade's most important tools for enabling biology scientists and researchers to explore human health and diseases. However, due to the computation complexity of the MD algorithm, it takes weeks or even months to simulate a comparatively simple biology entity on conventional multicore processors. The critical path in molecular dynamics simulations is the force calculation between particles inside the simulated environment, which has abundant parallelism. Among various acceleration platforms, FPGA is an attractive alternative because of its low power and high energy efficiency. However, due to its high programming cost using RTL, none of the mainstream MD software packages has yet adopted FPGA for acceleration. In this paper we revisit the FPGA acceleration of MD in high-level synthesis (HLS) so as to provide affordable programming cost. Our experience with the MD acceleration demonstrates that HLS optimizations such as loop pipelining, module duplication and memory partitioning are essential to improve the performance, achieving a speedup of 9.5X compared to a 12-core CPU. More importantly, we observe that even the fully optimized HLS design can still be 2X slower than the reference RTL architecture due to the common dynamic (conditional) data flow behavior that is not yet supported by current HLS tools. To support such behavior, we further customize an array of processing elements together with a data-driven streaming network through a common RTL template, and fully automate the design flow. Our final experimental results demonstrate a 19.4X performance speedup and 39X energy efficiency for the widely used ApoA1 MD benchmark on the Convey HC1ex FPGA compared to a 12-core Intel Xeon server.

Motivation & Objective

  • Address the high programming cost of FPGA-based MD acceleration by leveraging high-level synthesis (HLS) to reduce development time.
  • Identify and diagnose the performance bottleneck in HLS tools caused by lack of support for dynamic (conditional) data flow behavior in MD simulations.
  • Develop an automated design flow to extend HLS-generated designs with dynamic data flow support through a reusable RTL template.
  • Achieve performance and energy efficiency comparable to hand-optimized RTL designs while maintaining HLS-level programmability.
  • Demonstrate the effectiveness of the proposed flow on the widely used ApoA1 MD benchmark using the Convey HC1ex FPGA platform.

Proposed method

  • Start with a naive HLS implementation of the MD force computation kernel and iteratively apply HLS optimizations: loop pipelining, module duplication, and memory partitioning.
  • Use a common RTL template to customize a processing element (PE) array and a data-driven streaming network to handle dynamic data flow behavior not natively supported by HLS tools.
  • Automate the integration of the enhanced RTL architecture into the HLS design flow, allowing users to remain in the HLS environment while gaining RTL-level performance.
  • Optimize the design space by varying the number of duplicated distance calculation modules and force computation modules to balance performance and area overhead.
  • Implement and evaluate the final design on the Convey HC1ex FPGA, comparing performance and energy efficiency against a 12-core Intel Xeon server.

Experimental results

Research questions

  • RQ1To what extent can high-level synthesis (HLS) alone achieve performance comparable to hand-optimized RTL designs for MD simulation acceleration?
  • RQ2What are the key performance limitations in current HLS tools when targeting MD simulations with dynamic data flow behavior?
  • RQ3How can dynamic (conditional) data flow behavior—common in MD force calculations—be effectively supported in HLS-generated designs?
  • RQ4Can an automated design flow bridge the performance gap between optimized HLS and reference RTL architectures without requiring manual RTL coding?
  • RQ5What performance and energy efficiency gains can be achieved by combining HLS with targeted RTL-level enhancements for MD workloads?

Key findings

  • The fully optimized HLS design achieved a 9.5× speedup over a 12-core Intel Xeon CPU, demonstrating the effectiveness of HLS optimizations like loop pipelining and module duplication.
  • Despite full HLS optimization, performance remained 2× slower than the reference RTL design due to unsupported dynamic data flow behavior, causing underutilization of force computation PEs (only ~25% utilization).
  • The introduction of a custom RTL template for data-driven streaming and PE array configuration enabled full utilization of processing elements, eliminating the performance gap.
  • The final HLS-RTL hybrid design achieved 19.4× speedup and 39× higher energy efficiency compared to the 12-core CPU server on the Convey HC1ex FPGA.
  • Design space exploration showed that duplicating four distance calculation modules per force computation module provided optimal performance per area, achieving 2.5× speedup with 25% area overhead.
  • The proposed automation flow successfully generated a high-performance accelerator with minimal manual RTL effort, enabling practical FPGA acceleration of MD simulations in a high-level programming model.

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.