On Distributed Gravitational N-Body Simulations

03/16/2022
by   Alexander Brandt, et al.
0

The N-body problem is a classic problem involving a system of N discrete bodies mutually interacting in a dynamical system. At any moment in time there are N*(N - 1)/2 such interactions occurring. This scaling as N^2 leads to computational difficulties where simulations range from tens of thousands of bodies to many millions. Approximation algorithms, such as the famous Barnes-Hut algorithm, simplify the number of interactions to scale as N(log N). Even still, this improvement in complexity is insufficient to achieve the desired performance for very large simulations on computing clusters with many nodes and many cores. In this work we explore a variety of algorithmic techniques for distributed and parallel variations on the Barnes-Hut algorithm to improve parallelism and reduce inter-process communication requirements. Explicit algorithms and details are provided for reproducibility. Our MPI implementation of distributed gravitational N-body simulation, freely available on GitHub, is evaluated on a cluster of 10 nodes, each with two 6-core CPUs, to test the effectiveness and scalability of the aforementioned techniques.

READ FULL TEXT

page 1

page 11

page 35

research
08/31/2023

Implementing scalable matrix-vector products for the exact diagonalization methods in quantum many-body physics

Exact diagonalization is a well-established method for simulating small ...
research
07/12/2022

The OpenMP Cluster Programming Model

Despite the various research initiatives and proposed programming models...
research
03/09/2020

CUBE – Towards an Optimal Scaling of Cosmological N-body Simulations

N-body simulations are essential tools in physical cosmology to understa...
research
04/26/2022

From Sand to Flour: The Next Leap in Granular Computing with NanoSort

The granularity of distributed computing is limited by communication tim...
research
05/15/2019

Improving strong scaling of the Conjugate Gradient method for solving large linear systems using global reduction pipelining

This paper presents performance results comparing MPI-based implementati...
research
12/01/2020

Enhancing Scalability of a Matrix-Free Eigensolver for Studying Many-Body Localization

In [Van Beeumen, et. al, HPC Asia 2020, https://www.doi.org/10.1145/3368...
research
01/25/2023

Accelerating Brain Simulations with the Fast Multipole Method

The brain is probably the most complex organ in the human body. To under...

Please sign up or login with your details

Forgot password? Click here to reset