# Bonsai-SPH: A GPU accelerated astrophysical Smoothed Particle Hydrodynamics code

### Submission summary

 As Contributors: Jeroen Bédorf Arxiv Link: https://arxiv.org/abs/1909.07439v2 (pdf) Date accepted: 2020-04-17 Date submitted: 2020-02-28 01:00 Submitted by: Bédorf, Jeroen Submitted to: SciPost Physics Academic field: Astronomy Specialties: Fluid Dynamics Instrumentation and Methods for Astrophysics Approach: Computational

### Abstract

We present the smoothed-particle hydrodynamics simulation code, Bonsai-SPH, which is a continuation of our previously developed gravity-only hierarchical $N$-body code (called Bonsai). The code is optimized for Graphics Processing Unit (GPU) accelerators which enables researchers to take advantage of these powerful computational resources. Bonsa-SPH produces simulation results comparable with state-of-the-art, CPU based, codes, but using an order of magnitude less computation time. The code is freely available online and the details are described in this work.

### Ontology / Topics

See full Ontology or Topics database.

Published as SciPost Astro. 1, 001 (2020)

We have updated the manuscript to take into the comments from the referee, for changes see the 'List of changes' section. The application example we will leave for a follow up paper.

### List of changes

Introduction
* Added a paragraph about moving grid codes that combine advantages of SPH and grid codes into a single method.

Multi-GPU section
* Expanded upon the problems faced
* Explain in further detail the performance difference between the multi-GPU gravity and multi-GPU SPH methods and which steps have to be taken to optimize the SPH method.