Skip to main content
QUICK REVIEW

[Paper Review] Fully Integrated On-FPGA Molecular Dynamics Simulations

Chen Yang, Tong Geng|arXiv (Cornell University)|May 14, 2019
Parallel Computing and Optimization TechniquesComputer Science31 references8 citations
TL;DR

This paper presents the first fully integrated, on-FPGA molecular dynamics (MD) simulation engine that performs all MD computation—short- and long-range forces, bonded interactions, motion update, and particle migration—entirely on a single FPGA, eliminating off-chip data transfers. It achieves 630 ns/day on a 23.5K-particle DFHR system, outperforming state-of-the-art GPU implementations by over 40%.

ABSTRACT

The implementation of Molecular Dynamics (MD) on FPGAs has received substantial attention. Previous work, however, has consisted of either proof-of-concept implementations of components, usually the range-limited force; full systems, but with much of the work shared by the host CPU; or prototype demonstrations, e.g., using OpenCL, that neither implement a whole system nor have competitive performance. In this paper, we present what we believe to be the first full-scale FPGA-based simulation engine, and show that its performance is competitive with a GPU (running Amber in an industrial production environment). The system features on-chip particle data storage and management, short- and long-range force evaluation, as well as bonded forces, motion update, and particle migration. Other contributions of this work include exploring numerous architectural trade-offs and analysis on various mappings schemes among particles/cells and the various on-chip compute units. The potential impact is that this system promises to be the basis for long timescale Molecular Dynamics with a commodity cluster.

Motivation & Objective

  • To develop a complete, self-contained MD simulation engine fully implemented on a single FPGA, removing dependency on host CPU for computation.
  • To address the challenge of mapping particles, cells, and force computation pipelines efficiently across on-chip resources (BRAMs and compute units).
  • To optimize performance by analyzing architectural trade-offs in memory hierarchy, pipeline distribution, and workload mapping schemes.
  • To enable long-timescale MD simulations on commodity FPGA clusters by minimizing communication overhead and maximizing on-chip data reuse.
  • To provide application-aware, automated design generation via HDL scripts for rapid exploration of performance-optimized configurations.

Proposed method

  • Implemented an end-to-end MD pipeline on an Intel Stratix 10 FPGA, including on-chip particle storage, range-limited (RL) and long-range (LR) force evaluation, bonded force computation, motion update, and particle migration.
  • Employed a scoreboarding mechanism to enable parallel execution of force evaluation and motion update, improving pipeline utilization.
  • Designed two memory architectures: distributed BRAMs for RL/LR forces and a global memory for bonded forces, optimizing bandwidth and resource usage.
  • Used on-the-fly neighbor list filtering to reduce redundant particle pair computations and improve efficiency.
  • Developed a software script to estimate optimal pipeline count, resource usage, and performance based on input dataset size and cell configuration.
  • Mapped particles and cells to compute pipelines using three distinct distribution schemes, evaluating trade-offs in load balancing and memory access.

Experimental results

Research questions

  • RQ1Can a fully integrated, self-sufficient MD simulation be implemented on a single FPGA without off-chip CPU involvement?
  • RQ2What are the optimal mappings between particles/cells and on-chip compute units (pipelines) and memory (BRAMs) for maximizing performance?
  • RQ3How do different memory architectures (distributed vs. global) and pipeline distribution strategies impact throughput and resource utilization?
  • RQ4To what extent can FPGA reconfigurability be leveraged to customize designs for varying MD system sizes and densities?
  • RQ5Can such an FPGA-based MD engine achieve performance competitive with modern GPU accelerators in production environments?

Key findings

  • The proposed FPGA-based MD engine achieves a simulation throughput of 630 ns/day on a 23.5K-particle Dihydrofolate Reductase (DFHR) system, outperforming state-of-the-art GPU implementations by at least 40%.
  • Design 6, using distributed memory and workload distribution 3, delivered the highest performance (630.25 ns/day) on the DFHR dataset, especially effective for dense systems.
  • Memory bandwidth was the primary bottleneck in initial designs; optimized memory access in Design 2 and 4 reduced iteration time from 64,411 μs to 313 μs.
  • The number of pipelines that can be mapped is largely independent of dataset size until BRAM resource limits are reached, but performance varies significantly with data density and mapping scheme.
  • Performance varies with dataset characteristics: sparse systems (e.g., 80 particles per cell) benefit most from workload distribution 3, while dense systems (e.g., 400 particles per cell) show diminishing returns from complex distributions.
  • The system’s reconfigurable design, guided by automated HDL scripts, enables rapid exploration of optimal configurations for different MD system sizes and cutoff radii.

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.