Fully integrated FPGA molecular dynamics simulations

Chen Yang, Tong Geng, Tianqi Wang, Rushi Patel, Qingqing Xiong, Ahmed Sanaullah, Chunshu Wu, Jiayi Sheng, Charles Lin, Vipin Sachdeva, Woody Sherman, Martin C. Herbordt

Abstract

Molecular Dynamics (MD) simulations are critical for understanding biological processes at the atomic level. While GPUs are the standard for acceleration, they face significant communication bottlenecks when simulating small-to-medium-sized systems (20K–50K atoms). This paper presents the first fully integrated, end-to-end MD simulation engine implemented on a single Intel Stratix 10 FPGA. By moving the entire computation loop—including force evaluation, motion updates, and particle migration—onto the chip, the system eliminates the latency associated with CPU-GPU data transfers. The engine achieves a throughput of 630 ns/day for a 23.5K atom benchmark, outperforming high-end GPUs by over 40%.

Introduction

MD simulations are computationally expensive, often requiring weeks of processing time. Current acceleration strategies primarily rely on GPUs, which excel at massive parallelism but struggle with "strong scaling" for smaller systems. In these scenarios, the overhead of moving data between the CPU and GPU becomes the primary performance bottleneck. Specialized ASICs like the Anton supercomputer solve this but are not widely accessible. This research demonstrates that a fully integrated system on commodity FPGA hardware can compete with both GPUs and ASICs by eliminating CPU intervention during the simulation loop.

System Architecture and Integration

The core innovation of this work is the "Full Integration" of the MD pipeline on a single chip. Unlike previous FPGA-based accelerators that only handled specific kernels like short-range forces, this system implements Range-Limited (RL) forces, Long-Range (LR) forces (via 3D FFT), Bonded forces, and Motion Integration entirely on-chip.

Overview of the fully integrated MD engine architecture on FPGA.

As shown in the architecture diagram, the system utilizes M20K RAM blocks for on-chip memory management, allowing for massive parallel access to particle positions, velocities, and forces without hitting off-chip memory bandwidth limits. A "Hardware Scoreboarding" mechanism tracks the completion of force calculations for specific cells, enabling motion updates to trigger immediately and in parallel with other evaluations.

Workload Mapping and Optimization

To optimize performance, the researchers explored various ways to map particles to compute pipelines. For dense molecular systems, they found that assigning each pipeline to its own "homecell" or spatial region was the most efficient approach.

Spatial decomposition and homecell mapping for particle-to-pipeline assignment.

Additional technical innovations include a "planar filtering" method that uses fixed-point logic to filter out particle pairs outside the cutoff radius ($r_c$), saving 74% of DSP resources. Furthermore, the authors leveraged the native floating-point support of modern FPGAs, finding that the accuracy and resource trade-offs now favor standard floating-point for most calculations over complex fixed-point math.

Results and Performance

The system was benchmarked using the Dihydrofolate Reductase (DHFR) dataset, a standard MD benchmark with 23,588 atoms.

  • Throughput: The FPGA engine achieved 630 ns/day.
  • GPU Comparison: This is approximately 42% faster than an NVIDIA RTX 2080Ti running the production-grade Amber 18 software (~444 ns/day).
  • CPU Comparison: The system is more than 25x faster than a 16-core Intel Xeon CPU.

By using planar filtering and interpolation, the researchers successfully fit 52 parallel force pipelines onto a single chip while maintaining simulation quality comparable to industry-standard software.

Conclusion and Future Work

This work proves that an "all-on-chip" FPGA approach can significantly outperform high-end GPUs for small-to-medium molecular systems by eliminating communication latencies. While the current design is limited to systems of roughly 40K particles, future work will explore multi-FPGA clusters. Because FPGAs feature direct high-speed serial links, they offer a promising path for scaling MD simulations to larger systems without reintroducing the bottlenecks of traditional CPU-accelerated architectures.

Summary updated

BibTeX
@inproceedings{yang2019fully,
  author = {Chen Yang and Tong Geng and Tianqi Wang and Rushi Patel and Qingqing Xiong and Ahmed Sanaullah and Chunshu Wu and Jiayi Sheng and Charles Lin and Vipin Sachdeva and Woody Sherman and Martin C. Herbordt},
  title = {{Fully integrated FPGA molecular dynamics simulations}},
  booktitle = {SC},
  year = {2019},
  doi = {10.1145/3295500.3356179},
}

Loading related content...

Figure