scaling clustered n body sph simulations
play

Scaling Clustered N-Body/SPH Simulations Thomas Quinn University - PowerPoint PPT Presentation

Scaling Clustered N-Body/SPH Simulations Thomas Quinn University of Washington Laxmikant Kale Filippo Gioachin Pritish Jetley Celso Mendes Fabio Governato Lauren Anderson Amit Sharma Michael Tremmel Lukasz Wesolowski Ferah Munshi


  1. Scaling Clustered N-Body/SPH Simulations Thomas Quinn University of Washington

  2. Laxmikant Kale Filippo Gioachin Pritish Jetley Celso Mendes Fabio Governato Lauren Anderson Amit Sharma Michael Tremmel Lukasz Wesolowski Ferah Munshi Gengbin Zheng Joachim Stadel Edgar Solomonik James Wadsley Greg Stinson Harshitha Menon

  3. Cosmology at 380,000 years Image courtesy ESA/Planck

  4. Cosmology at 13.6 Gigayears

  5. ... is not so simple

  6. Computational Cosmology ● CMB has fluctuations of 1e-5 ● Galaxies are overdense by 1e7 ● It happens (mostly) through Gravitational Collapse ● Making testable predictions from a cosmological hypothesis requires – Non-linear, dynamic calculation – e.g. Computer simulation

  7. Michael Tremmel et al, 2017

  8. TreePiece: basic data structure ● A “vertical slice” of the tree, all the way to the root. ● Nodes are either: – Internal – External – Boundary (shared)

  9. Overall treewalk structure 4/18/2017 Parallel Programming Laboratory @ UIUC 12

  10. Speedups for 2 billion clustered particles

  11. Multistep Speedup

  12. Clustered/Multistepping Challenges ● Load/particle imbalance ● Communication imbalance ● Rapid switching between phases – Gravity, Star formation, SMBH mergers ● Fixed costs: – Domain Decomposition – Load balancing – Tree build 4/18/2017 Parallel Programming Laboratory @ UIUC 16

  13. Zoomed Cluster simulation

  14. Load distribution

  15. ORB Load Balancing

  16. LB by particle count Gravity Gas Communication SMP load sharing 29.4 seconds

  17. LB by Compute time Star Formation 15.8 seconds

  18. Multistepping Utilization

  19. Small rungs: Energy Energy

  20. Smallest step Total interval: 1 second

  21. CPU Scaling Summary ● Load balancing the big steps is (mostly) solved ● Load balancing/optimizing the small steps is what is needed: – Small steps dominate the total time – Small steps increase throughput even when not optimal – Plenty of opportunity for improvement

  22. GPU Implementation: Gravity Only ● Load (SMP node) local tree/particle data onto the GPU ● Load prefetched remote tree onto the GPU ● CPUs walk tree and pass interaction lists – Lists are batched to minimize number of data transfers ● “Missed” treenodes: walk is resumed when data arrives: interaction list plus new tree data sent to the GPU.

  23. Grav/SPH scaling with GPUs

  24. Tree walking on the GPU Jianqiau Liu, Purdue University

  25. Paratreet: parallel framework for tree algorithms

  26. Availability ● ChaNGa: http://github.com/N-bodyShop/changa – See the Wiki for a developer's guide – Extensible: e.g. ChaNGa-MM by Phil Chang ● Paratreet: http://github.com/paratreet – Some design discussion and sample code

  27. Acknowledgments ● NSF ITR ● NSF Astronomy ● NSF XSEDE program for computing ● BlueWaters Petascale Computing ● NASA HST ● NASA Advanced Supercomuting

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend