FlowPM: Distributed TensorFlow Implementation of the FastPM Cosmological N-body Solver

Chirag Modi, Francois Lanusse, Uros Seljak
10/22/2020
52 citations
astro-ph.COastro-ph.IM

Official code: modichirag/flowpm (4 stars, Jupyter Notebook, MIT, last commit 2021-04-25).

Abstract

We present FlowPM, a Particle-Mesh (PM) cosmological N-body code implemented in Mesh-TensorFlow for GPU-accelerated, distributed, and differentiable simulations. We implement and validate the accuracy of a novel multi-grid scheme based on multiresolution pyramids to compute large scale forces efficiently on distributed platforms.

Show full abstract

We explore the scaling of the simulation on large-scale supercomputers and compare it with corresponding python based PM code, finding on an average 10x speed-up in terms of wallclock time. We also demonstrate how this novel tool can be used for efficiently solving large scale cosmological inference problems, in particular reconstruction of cosmological fields in a forward model Bayesian framework with hybrid PM and neural network forward model. We provide skeleton code for these examples and the entire code is publicly available at https://github.com/modichirag/flowpm.

View on arXivView PDF

Code Implementations(1)

modichirag/flowpmOfficial100%
MIT

Particle Mesh simulation in TensorFlow

41Jupyter Notebook, PythonMar 10, 20215 years agoMIT

Similar Papers

Cite this paper

@article{modi2020flowpm,
  title  = {FlowPM: Distributed TensorFlow Implementation of the FastPM Cosmological N-body Solver},
  author = {Chirag Modi and Francois Lanusse and Uros Seljak},
  year   = {2020},
  eprint = {2010.11847},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.11847}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.11847.svg)](https://codeofpaper.com/paper/2010.11847)

Discussion