English

Performance Optimisation of Smoothed Particle Hydrodynamics Algorithms for Multi/Many-Core Architectures

Distributed, Parallel, and Cluster Computing 2017-09-27 v2 Instrumentation and Methods for Astrophysics Computational Physics

Abstract

We describe a strategy for code modernisation of Gadget, a widely used community code for computational astrophysics. The focus of this work is on node-level performance optimisation, targeting current multi/many-core IntelR architectures. We identify and isolate a sample code kernel, which is representative of a typical Smoothed Particle Hydrodynamics (SPH) algorithm. The code modifications include threading parallelism optimisation, change of the data layout into Structure of Arrays (SoA), auto-vectorisation and algorithmic improvements in the particle sorting. We obtain shorter execution time and improved threading scalability both on Intel XeonR (2.6×2.6 \times on Ivy Bridge) and Xeon PhiTM (13.7×13.7 \times on Knights Corner) systems. First few tests of the optimised code result in 19.1×19.1 \times faster execution on second generation Xeon Phi (Knights Landing), thus demonstrating the portability of the devised optimisation solutions to upcoming architectures.

Keywords

Cite

@article{arxiv.1612.06090,
  title  = {Performance Optimisation of Smoothed Particle Hydrodynamics Algorithms for Multi/Many-Core Architectures},
  author = {Fabio Baruffa and Luigi Iapichino and Nicolay J. Hammer and Vasileios Karakasis},
  journal= {arXiv preprint arXiv:1612.06090},
  year   = {2017}
}

Comments

8 pages, 2 columns, 4 figures, accepted as paper at HPCS Proceedings 2017, IEEE XPLORE

R2 v1 2026-06-22T17:27:53.600Z