Galactos: computing the anisotropic 3-point correlation function for 2 billion galaxies

Brian Friesen, Md. Mostofa Ali Patwary, Brian Austin, Nadathur Satish, Zachary Slepian, Narayanan Sundaram, Deborah Bard, Daniel J. Eisenstein, Jack Deslippe, Pradeep Dubey, Prabhat

TL;DR

This paper introduces "Galactos," a highly optimized, parallel algorithm for computing the anisotropic 3-point correlation function (3PCF) of galaxies. This breakthrough enables the analysis of massive galaxy datasets, promising to significantly advance our understanding of dark energy, gravity, and galaxy formation.

What Problem Does This Paper Address?

Cosmology's biggest questions revolve around the nature of dark energy and the fundamental theory of gravity. The 3-point correlation function (3PCF) is a powerful tool for probing these mysteries, offering richer information than the more commonly used 2-point correlation function (2PCF). However, the computational expense of calculating the 3PCF has historically been a major bottleneck, scaling as O(N³) and making it infeasible for the large galaxy surveys now available. This paper tackles this challenge head-on by developing an O(N²) algorithm that can handle billions of galaxies.

Methods

The core innovation is Galactos, a novel O(N²) algorithm that generalizes previous O(N²) methods for the isotropic 3PCF to handle the anisotropic case. This is achieved by:

  • Load-balanced k-d Tree: A sophisticated partitioning scheme that efficiently distributes the massive dataset across compute nodes, ensuring good load balance even with non-uniform galaxy distributions.
  • Spherical Harmonic Expansions: The algorithm leverages spherical harmonics to represent the angular dependence of the galaxy distribution around each "primary" galaxy.
  • Optimized for Intel Xeon Phi: Extensive single-node optimizations exploit SIMD parallelism, instruction and thread concurrency, and efficient cache utilization to achieve ~39% of peak performance on this architecture.
  • Halo Exchange: A technique to manage inter-process communication for neighbor galaxy data, crucial for distributed memory systems.

Datasets

The primary dataset used for evaluation is the "Outer Rim" simulation, a cosmological simulation containing over a trillion dark matter particles in a 3000 Mpc/h box. For their analysis, the authors group these particles into halos, representing galaxies, to create a dataset of approximately 2 billion galaxies. They also use smaller subsets of this simulation for weak and strong scaling tests, as detailed in Table 1.

Key Insights and Ideas

  • The 3PCF is a Goldmine for Cosmology: While the 2PCF has been instrumental, the 3PCF contains significantly more information about dark energy and gravity, particularly regarding the growth rate of structure and galaxy biasing.
  • Computational Bottleneck Solved: The O(N²) algorithm is the critical enabler, transforming the 3PCF from a computationally prohibitive statistic to one that can be routinely computed for large surveys.
  • Hardware-Software Co-design: The deep optimization for the Intel Xeon Phi architecture highlights the importance of tailoring algorithms to specific hardware for maximum performance.
  • Scalability is Key: The algorithm's near-perfect weak and strong scaling across thousands of nodes demonstrates its readiness for exascale computing and future massive datasets.

Key Results

  • Performance: Galactos achieves 39% of peak single-node performance on the Intel Xeon Phi.
  • Scalability: The code exhibits near-perfect weak scaling and strong scaling, achieving 5.06 PF (sustained) across 9636 nodes.
  • Speed: The full analysis of 2 billion galaxies is completed in approximately 982.4 seconds (mixed precision) or 1070.6 seconds (double precision) on the Cori supercomputer.
  • Impact: This performance makes the anisotropic 3PCF computable for all galaxies in the observable universe in less than a day, and for future surveys with billions of galaxies, it will be a solved problem.

Limitations and Future Work

  • Load Imbalance: While weak scaling is excellent, strong scaling shows slight deviations from ideal due to variations in the number of primary/secondary galaxy pairs per node, stemming from short-range density fluctuations.
  • Future Work: The authors suggest that adjusting the "bucket" size in the multipole accumulation kernel could potentially increase peak FLOPS, though this might introduce synchronization overheads. They also note that the framework is applicable beyond cosmology, for instance, to studying the Interstellar Medium (ISM). The paper also points to future work in companion papers for algorithmic details and theoretical underpinnings.

Summary updated

BibTeX
@inproceedings{friesen2017galactos,
  author = {Brian Friesen and Md. Mostofa Ali Patwary and Brian Austin and Nadathur Satish and Zachary Slepian and Narayanan Sundaram and Deborah Bard and Daniel J. Eisenstein and Jack Deslippe and Pradeep Dubey and Prabhat},
  title = {{Galactos: computing the anisotropic 3-point correlation function for 2 billion galaxies}},
  booktitle = {SC},
  year = {2017},
  doi = {10.1145/3126908.3126927},
}
Figure