From Task-Based GPU Work Aggregation to Stellar Mergers: Turning Fine-Grained CPU Tasks into Portable GPU Kernels

Gregor Daiß, Patrick Diehl, Dominic Marcello, Alireza Kheirkhahan, Hartmut Kaiser +1 more
9/26/2022
cs.DC

Official code: STEllAR-GROUP/octotiger (56 stars, C++, BSL-1.0, last commit 2026-11-17).

Abstract

Meeting both scalability and performance portability requirements is a challenge for any HPC application, especially for adaptively refined ones. In Octo-Tiger, an astrophysics application for the simulation of stellar mergers, we approach this with existing solutions: We employ HPX to obtain fine-grained tasks to easily distribute work and finely overlap communication and computation.

Show full abstract

For the computations themselves, we use Kokkos to turn these tasks into compute kernels capable of running on hardware ranging from a few CPU cores to powerful accelerators. There is a missing link, however: while the fine-grained parallelism exposed by HPX is useful for scalability, it can hinder GPU performance when the tasks become too small to saturate the device, causing low resource utilization. To bridge this gap, we investigate multiple different GPU work aggregation strategies within Octo-Tiger, adding one new strategy, and evaluate the node-level performance impact on recent AMD and NVIDIA GPUs, achieving noticeable speedups.

View on arXivView PDF

Code Implementations(1)

BSL-1.0

Astrophysics program simulating the evolution of star systems based on the fast multipole method on adaptive Octrees

5623C++, CMakeNov 12, 20162 weeks agoBSL-1.0
astrophysicscudacuda-kernelshpxkokkos+3 more

Similar Papers

Cite this paper

@article{dai2022from,
  title  = {From Task-Based GPU Work Aggregation to Stellar Mergers: Turning Fine-Grained CPU Tasks into Portable GPU Kernels},
  author = {Gregor Daiß and Patrick Diehl and Dominic Marcello and Alireza Kheirkhahan and Hartmut Kaiser and Dirk Pflüger},
  year   = {2022},
  eprint = {2210.06438},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06438}
}

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/2210.06438.svg)](https://codeofpaper.com/paper/2210.06438)

Discussion