Skip to main content
Top
Published in: The Journal of Supercomputing 7/2020

29-04-2019

FastNBL: fast neighbor lists establishment for molecular dynamics simulation based on bitwise operations

Authors: Kun Li, Shigang Li, Shan Huang, Yifeng Chen, Yunquan Zhang

Published in: The Journal of Supercomputing | Issue 7/2020

Log in

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

In the molecular dynamics simulation, an important step is the establishment of neighbor list for each particle, which involves the distance calculation for each particle pair in the simulation space. However, the distance calculation will cause costly floating-point operations. In this paper, we propose a novel algorithm, called Fast Neighbor List, which establishes the neighbor lists mainly using the bitwise operations. Firstly, we design a data layout, which uses an integer value to represent the three-dimensional coordinates of a particle. Then, a bunch of bitwise operations and two subtraction operations are used to judge whether the distance between a pair of particles is within the cutoff radius. We demonstrate that our algorithm can deal with the periodic boundary seamlessly. We also use single instruction multiple data (SIMD) instructions to further improve the performance. We implement our algorithm on Intel Xeon E5-2670, ARM v8, and Sunway many-core processors, respectively. Compared with the traditional method, our algorithm achieves on average 1.79x speedup on Intel Xeon E5-2670 processor, 3.43x speedup on ARM v8 processor, and 4.03x speedup on Sunway many-core processor. After using SIMD instructions, our algorithm achieves on average 2.64x speedup and 14.43x speedup on Intel Xeon E5-2670 and ARM v8 processors, respectively.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Literature
1.
go back to reference Abraham MJ, Murtola T, Schulz R, Páll S, Smith JC, Hess B, Lindahl E (2015) Gromacs: high performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX 1:19–25 Abraham MJ, Murtola T, Schulz R, Páll S, Smith JC, Hess B, Lindahl E (2015) Gromacs: high performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX 1:19–25
2.
go back to reference Allen MP, Tildesley DJ (2017) Computer simulation of liquids. Oxford University Press, OxfordMATH Allen MP, Tildesley DJ (2017) Computer simulation of liquids. Oxford University Press, OxfordMATH
3.
go back to reference Allen MP et al (2004) Introduction to molecular dynamics simulation. Comput Soft Matter Synth Polym proteins 23:1–28 Allen MP et al (2004) Introduction to molecular dynamics simulation. Comput Soft Matter Synth Polym proteins 23:1–28
4.
go back to reference Andersen HC (1983) Rattle: a velocity version of the shake algorithm for molecular dynamics calculations. J Comput Phys 52(1):24–34MATH Andersen HC (1983) Rattle: a velocity version of the shake algorithm for molecular dynamics calculations. J Comput Phys 52(1):24–34MATH
5.
go back to reference Anderson JA, Glotzer SC (2013) The development and expansion of hoomd-blue through six years of gpu proliferation. arXiv:1308.5587 Anderson JA, Glotzer SC (2013) The development and expansion of hoomd-blue through six years of gpu proliferation. arXiv:​1308.​5587
6.
go back to reference Anderson JA, Lorenz CD, Travesset A (2008) General purpose molecular dynamics simulations fully implemented on graphics processing units. J Comput Phys 227(10):5342–5359MATH Anderson JA, Lorenz CD, Travesset A (2008) General purpose molecular dynamics simulations fully implemented on graphics processing units. J Comput Phys 227(10):5342–5359MATH
7.
go back to reference ARM (2015) ARM Cortex-A Series: Programmer’s Guide for ARMv8-A ARM (2015) ARM Cortex-A Series: Programmer’s Guide for ARMv8-A
8.
go back to reference ARM (2017) ARM architecture reference manual. ARMv8, for ARMv8-A architecture profile ARM (2017) ARM architecture reference manual. ARMv8, for ARMv8-A architecture profile
9.
go back to reference Blumenthal LM (1970) Theory and applications of distance geometry. Chelsea, New YorkMATH Blumenthal LM (1970) Theory and applications of distance geometry. Chelsea, New YorkMATH
11.
go back to reference Dagum L, Menon R (1998) OpenMP: an industry standard API for shared-memory programming. IEEE Comput Sci Eng 5(1):46–55 Dagum L, Menon R (1998) OpenMP: an industry standard API for shared-memory programming. IEEE Comput Sci Eng 5(1):46–55
12.
go back to reference Flur S, Gray KE, Pulte C, Sarkar S, Sezgin A, Maranget L, Deacon W, Sewell P (2016) Modelling the ARMv8 architecture, operationally: concurrency and ISA. In: ACM SIGPLAN notices, vol 51. ACM, pp 608–621 Flur S, Gray KE, Pulte C, Sarkar S, Sezgin A, Maranget L, Deacon W, Sewell P (2016) Modelling the ARMv8 architecture, operationally: concurrency and ISA. In: ACM SIGPLAN notices, vol 51. ACM, pp 608–621
13.
go back to reference Fog A (2008) Optimizing subroutines in assembly language: an optimization guide for x86 platforms. Copenhagen University College of Engineering Fog A (2008) Optimizing subroutines in assembly language: an optimization guide for x86 platforms. Copenhagen University College of Engineering
14.
go back to reference Frenkel D, Smit B (2001) Understanding molecular simulation: from algorithms to applications, vol 1. Elsevier, LondonMATH Frenkel D, Smit B (2001) Understanding molecular simulation: from algorithms to applications, vol 1. Elsevier, LondonMATH
15.
go back to reference Fu H, Liao J, Yang J, Wang L, Song Z, Huang X, Yang C, Xue W, Liu F, Qiao F et al (2016) The sunway taihulight supercomputer: system and applications. Sci China Inf Sci 59(7):072001 Fu H, Liao J, Yang J, Wang L, Song Z, Huang X, Yang C, Xue W, Liu F, Qiao F et al (2016) The sunway taihulight supercomputer: system and applications. Sci China Inf Sci 59(7):072001
16.
go back to reference Glaser J, Nguyen TD, Anderson JA, Lui P, Spiga F, Millan JA, Morse DC, Glotzer SC (2015) Strong scaling of general-purpose molecular dynamics simulations on gpus. Comput Phys Commun 192:97–107 Glaser J, Nguyen TD, Anderson JA, Lui P, Spiga F, Millan JA, Morse DC, Glotzer SC (2015) Strong scaling of general-purpose molecular dynamics simulations on gpus. Comput Phys Commun 192:97–107
17.
go back to reference Hockney RW, Eastwood JW (1988) Computer simulation using particles. CRC Press, LondonMATH Hockney RW, Eastwood JW (1988) Computer simulation using particles. CRC Press, LondonMATH
18.
go back to reference Intel (2018) Intel® 64 and IA-32 architectures software developers manual. Volume 3B: System programming Guide, Part 2 Intel (2018) Intel® 64 and IA-32 architectures software developers manual. Volume 3B: System programming Guide, Part 2
19.
go back to reference Jiang W, Hardy DJ, Phillips JC, MacKerell AD Jr, Schulten K, Roux B (2010) High-performance scalable molecular dynamics simulations of a polarizable force field based on classical drude oscillators in namd. J Phys Chem Lett 2(2):87–92 Jiang W, Hardy DJ, Phillips JC, MacKerell AD Jr, Schulten K, Roux B (2010) High-performance scalable molecular dynamics simulations of a polarizable force field based on classical drude oscillators in namd. J Phys Chem Lett 2(2):87–92
20.
go back to reference Liu W, Schmidt B, Voss G, Müller-Wittig W (2007) Molecular dynamics simulations on commodity GPUs with CUDA. In: International Conference on High-Performance Computing. Springer, pp 185–196 Liu W, Schmidt B, Voss G, Müller-Wittig W (2007) Molecular dynamics simulations on commodity GPUs with CUDA. In: International Conference on High-Performance Computing. Springer, pp 185–196
21.
go back to reference Mattson W, Rice BM (1999) Near-neighbor calculations using a modified cell-linked list method. Comput Phys Commun 119(2–3):135–148 Mattson W, Rice BM (1999) Near-neighbor calculations using a modified cell-linked list method. Comput Phys Commun 119(2–3):135–148
22.
go back to reference Niethammer C, Becker S, Bernreuther M, Buchholz M, Eckhardt W, Heinecke A, Werth S, Bungartz HJ, Glass CW, Hasse H et al (2014) ls1 mardyn: the massively parallel molecular dynamics code for large systems. J Chem Theory Computation 10(10):4455–4464 Niethammer C, Becker S, Bernreuther M, Buchholz M, Eckhardt W, Heinecke A, Werth S, Bungartz HJ, Glass CW, Hasse H et al (2014) ls1 mardyn: the massively parallel molecular dynamics code for large systems. J Chem Theory Computation 10(10):4455–4464
24.
go back to reference Plimpton S, Crozier P, Thompson A (2007) LAMMPS-large-scale atomic/molecular massively parallel simulator. Sandia Natl Lab 18:43–43 Plimpton S, Crozier P, Thompson A (2007) LAMMPS-large-scale atomic/molecular massively parallel simulator. Sandia Natl Lab 18:43–43
25.
go back to reference Potter D (1973) Computational physics. Wiley Potter D (1973) Computational physics. Wiley
26.
go back to reference Pronk S, Páll S, Schulz R, Larsson P, Bjelkmar P, Apostolov R, Shirts MR, Smith JC, Kasson PM, Van Der Spoel D et al (2013) Gromacs 4.5: a high-throughput and highly parallel open source molecular simulation toolkit. Bioinformatics 29(7):845–854 Pronk S, Páll S, Schulz R, Larsson P, Bjelkmar P, Apostolov R, Shirts MR, Smith JC, Kasson PM, Van Der Spoel D et al (2013) Gromacs 4.5: a high-throughput and highly parallel open source molecular simulation toolkit. Bioinformatics 29(7):845–854
27.
go back to reference Rapaport DC, Rapaport DCR (2004) The art of molecular dynamics simulation. Cambridge University Press, CambridgeMATH Rapaport DC, Rapaport DCR (2004) The art of molecular dynamics simulation. Cambridge University Press, CambridgeMATH
28.
go back to reference Stone JE, Phillips JC, Freddolino PL, Hardy DJ, Trabuco LG, Schulten K (2007) Accelerating molecular modeling applications with graphics processors. J Comput Chem 28(16):2618–2640 Stone JE, Phillips JC, Freddolino PL, Hardy DJ, Trabuco LG, Schulten K (2007) Accelerating molecular modeling applications with graphics processors. J Comput Chem 28(16):2618–2640
30.
go back to reference Trott CR (2011) Lammpscuda—a new gpu accelerated molecular dynamics simulations package and its application to ion-conducting glasses. Ph.d. thesis, Universitätsbibliothek Ilmenau Trott CR (2011) Lammpscuda—a new gpu accelerated molecular dynamics simulations package and its application to ion-conducting glasses. Ph.d. thesis, Universitätsbibliothek Ilmenau
31.
go back to reference Tuckerman M, Berne BJ, Martyna GJ (1992) Reversible multiple time scale molecular dynamics. J Chem Phys 97(3):1990–2001 Tuckerman M, Berne BJ, Martyna GJ (1992) Reversible multiple time scale molecular dynamics. J Chem Phys 97(3):1990–2001
32.
go back to reference Verlet L (1967) Computer “experiments” on classical fluids. I. Thermodynamical properties of Lennard–Jones molecules. Phys Rev 159(1):98 Verlet L (1967) Computer “experiments” on classical fluids. I. Thermodynamical properties of Lennard–Jones molecules. Phys Rev 159(1):98
33.
go back to reference Wang X, Xue W, Liu W, Wu L (2018) swSpTRSV: a fast sparse triangular solve with sparse level tile layout on sunway architectures. In: Proceedings of the 23rd ACM SIGPLAN symposium on principles and practice of parallel programming. ACM, pp 338–353 Wang X, Xue W, Liu W, Wu L (2018) swSpTRSV: a fast sparse triangular solve with sparse level tile layout on sunway architectures. In: Proceedings of the 23rd ACM SIGPLAN symposium on principles and practice of parallel programming. ACM, pp 338–353
34.
go back to reference Xing HJ, Khan MKR, Alnatsheh RH, Chirala RC, Bhattacharjee S (2012) Method and apparatus for neighbor list updates. US Patent 8,144,662 Xing HJ, Khan MKR, Alnatsheh RH, Chirala RC, Bhattacharjee S (2012) Method and apparatus for neighbor list updates. US Patent 8,144,662
35.
go back to reference Yao Z, Wang JS, Liu GR, Cheng M (2004) Improved neighbor list algorithm in molecular simulations using cell decomposition and data sorting method. Comput Phys Commun 161(1–2):27–35 Yao Z, Wang JS, Liu GR, Cheng M (2004) Improved neighbor list algorithm in molecular simulations using cell decomposition and data sorting method. Comput Phys Commun 161(1–2):27–35
Metadata
Title
FastNBL: fast neighbor lists establishment for molecular dynamics simulation based on bitwise operations
Authors
Kun Li
Shigang Li
Shan Huang
Yifeng Chen
Yunquan Zhang
Publication date
29-04-2019
Publisher
Springer US
Published in
The Journal of Supercomputing / Issue 7/2020
Print ISSN: 0920-8542
Electronic ISSN: 1573-0484
DOI
https://doi.org/10.1007/s11227-019-02860-3

Other articles of this Issue 7/2020

The Journal of Supercomputing 7/2020 Go to the issue

Premium Partner