Exploiting the Space Filling Curve Ordering of Particles in the Neighbour Search of Gadget3

10/23/2018
by   Antonio Ragagnin, et al.
0

Gadget3 is nowadays one of the most frequently used high performing parallel codes for cosmological hydrodynamical simulations. Recent analyses have shown t hat the Neighbour Search process of Gadget3 is one of the most time-consuming parts. Thus, a considerable speedup can be expected from improvements of the u nderlying algorithms. In this work we propose a novel approach for speeding up the Neighbour Search which takes advantage of the space-filling-curve particle ordering. Instead of performing Neighbour Search for all particles individually, nearby active particles can be grouped and one single Neighbour Search can be performed to obta in a common superset of neighbours. Thus, with this approach we reduce the number of searches. On the other hand, tree walks are performed within a larger searching radius. There is an optimal size of grouping that maximize the speedup, which we found by numerical experiments. We tested the algorithm within the boxes of the Magneticum project. As a result we obtained a speedup of 1.65 in the Density and of 1.30 in the Hydrodynamics computation, respectively, and a total speedup of 1.34.

READ FULL TEXT
research
03/24/2020

Gadget3 on GPUs with OpenACC

We present preliminary results of a GPU porting of all main Gadget3 modu...
research
08/21/2020

Sparse Grids based Adaptive Noise Reduction strategy for Particle-In-Cell schemes

We propose a sparse grids based adaptive noise reduction strategy for el...
research
07/15/2019

New Paths from Splay to Dynamic Optimality

Consider the task of performing a sequence of searches in a binary searc...
research
04/17/2018

An Efficient SIMD Implementation of Pseudo-Verlet Lists for Neighbour Interactions in Particle-Based Codes

In particle-based simulations, neighbour finding (i.e finding pairs of p...
research
12/18/2017

Space-Filling Curve Indices as Acceleration Structure for Exemplar-Based Inpainting

Exemplar-based inpainting is the process of reconstructing missing parts...
research
01/02/2019

The Divide-and-Conquer Framework: A Suitable Setting for the DDM of the Future

This paper was prompted by numerical experiments we performed, in which ...
research
04/16/2020

Fast exact computation of the k most abundant isotope peaks with layer-ordered heaps

The theoretical computation of isotopic distribution of compounds is cru...

Please sign up or login with your details

Forgot password? Click here to reset