Skip to main content
Log in

Parallel simulation of Brownian dynamics on shared memory systems with OpenMP and Unified Parallel C

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

The simulation of particle dynamics is an essential method to analyze and predict the behavior of molecules in a given medium. This work presents the design and implementation of a parallel simulation of Brownian dynamics with hydrodynamic interactions for shared memory systems using two approaches: (1) OpenMP directives and (2) the Partitioned Global Address Space (PGAS) paradigm with the Unified Parallel C (UPC) language. The structure of the code is described, and different techniques for work distribution are analyzed in terms of efficiency, in order to select the most suitable strategy for each part of the simulation. Additionally, performance results have been collected from two representative NUMA systems, and they are studied and compared against the original sequential code.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Listing 1
Listing 2
Listing 3
Listing 4
Figure 1
Figure 2

Similar content being viewed by others

References

  1. Beenakker C (1986) Ewald sum of the Rotne–Prager tensor. J Chem Phys 85:1581–1582

    Article  Google Scholar 

  2. Długosz M, Zieliński P, Trylska J (2011) Brownian dynamics simulations on CPU and GPU with BD_BOX. J Comput Chem 32(12):2734–2744

    Article  Google Scholar 

  3. Ermak DL, McCammon JA (1978) Brownian dynamics with hydrodynamic interactions. J Chem Phys 69(4):1352–1360

    Article  Google Scholar 

  4. Fixman M (1986) Construction of Langevin forces in the simulation of hydrodynamic interaction. Macromolecules 19(4):1204–1207

    Article  Google Scholar 

  5. García de la Torre J, Hernández Cifre JG, Ortega A, Schmidt RR, Fernandes MX, Pérez Sánchez HE, Pamies R (2009) SIMUFLEX: algorithms and tools for simulation of the conformation and dynamics of flexible molecules and nanoparticles in dilute solution. J Chem Theory Comput 5(10):2606–2618

    Article  Google Scholar 

  6. Hipp M, Rosenstiel W (2004) Parallel hybrid particle simulations using MPI and OpenMP. In: 10th international Euro-Par conference (Euro-Par’04), Pisa, Italy, pp 189–197

    Google Scholar 

  7. Huber GA, McCammon JA (2010) Browndye: a software package for Brownian dynamics. Comput Phys Commun 181(11):1896–1905

    Article  MATH  Google Scholar 

  8. Klenin K, Merlitz H, Langowski J (1998) A Brownian dynamics program for the simulation of linear and circular DNA and other wormlike chain polyelectrolytes. Biophys J 74(2 Pt 1):780–788

    Article  Google Scholar 

  9. Kloeden PE, Platen E (1992) Numerical solution of stochastic differential equations. Springer, Berlin

    Book  MATH  Google Scholar 

  10. Li B, Zhu YL, Liu H, Lu ZY (2012) Brownian dynamics simulation study on the self-assembly of incompatible star-like block copolymers in dilute solution. Phys Chem Chem Phys 14:4964–4970

    Article  Google Scholar 

  11. Mallón DA, Taboada GL, Teijeiro C, Touriño J, Fraguela BB, Gómez A, Doallo R, Mouriño JC (2009) Performance evaluation of MPI, UPC and OpenMP on multicore architectures. In: 16th European PVM/MPI users’ group meeting (EuroPVM/MPI’09), Espoo, Finland, pp 174–184

    Google Scholar 

  12. Markidis S, Lapenta G (2010) Development and performance analysis of a UPC particle-in-cell code. In: 4th conference on partitioned global address space programming models (PGAS’10), New York, NY, USA. ACM, New York, p 10

    Google Scholar 

  13. Rotne J, Prager S (1969) Variational treatment of hydrodynamic interaction in polymers. J Chem Phys 50(11):4831–4837

    Article  Google Scholar 

  14. Tocino A, Vigo-Aguiar J (2003) New Itô–Taylor expansions. J Comput Appl Math 158(1):169–185

    Article  MathSciNet  MATH  Google Scholar 

  15. Unified parallel C at George Washington University. http://upc.gwu.edu. Accessed Oct 31 2012

  16. Wei W, Al-Khayat O, Cai X (2011) An OpenMP-enabled parallel simulator for particle transport in fluid flows. In: 11th international conference on computational science (ICCS’11), Singapore, pp 1475–1484

    Google Scholar 

  17. Zhao W, Wang Z (2009) ScaleUPC: a UPC compiler for multi-core systems. In: 3rd conference on partitioned global address space programing models (PGAS’09), Ashburn, VA, USA. ACM, New York, p 11

    Google Scholar 

Download references

Acknowledgements

This work was funded by the Ministry of Science and Innovation of Spain (Project TIN2010-16735), the Spanish network CAPAP-H3 (Project TIN2010-12011-E), and by the Galician Government (Pre-doctoral Program “María Barbeito” and Program for the Consolidation of Competitive Research Groups, ref. 2010/6).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Carlos Teijeiro.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Teijeiro, C., Sutmann, G., Taboada, G.L. et al. Parallel simulation of Brownian dynamics on shared memory systems with OpenMP and Unified Parallel C. J Supercomput 65, 1050–1062 (2013). https://doi.org/10.1007/s11227-012-0843-1

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-012-0843-1

Keywords

Navigation