Contributors: Dominique Aubert (ObAS), Lucas Barbier-Goy (CEA), Sylvain Breton (LAB), Catherine Blume (CU Boulder), Michel-Andrès Breton (CEA), Grégoire Doebele (CEA), Solange Druelle (CEA), Adam J. Finley (ESTEC), San Han (IAP), Olivier Marchal (ObAS), Mike Petrault (CRIStAL), Leodasce Sewanou (CRAL), Anatole Storck (Oxford), Guillaume Tcherniatinsky (IAP), Kerwann Tep (ObAS)
* started in 2019
{{author}} — {{#}}/{{total}}
Self-consistent formation of galaxies
Initial conditions
Simulated galaxies
NASA
{{author}} — {{#}}/{{total}}
\(<1\,\%\)
Exponentially-expanding Universe
Dark matter
Gas (H+He)
Stars
{{author}} — {{#}}/{{total}}
The simulation challenge
Time
Universe: \(13.7\,\mathrm{Gyr}\)
Supernova: \(1\,\mathrm{kyr}\)
⇒ \(10^7\) steps/simulation
NASA/CXC/A.Jubett
Mass
\(10^{11}\,\rm M_\odot\): Milky-Way
\(1\,\rm M_\odot\): typical star
⇒ \(10^{11}\) particles
Resolution:
\(\sim 10^{6}\,\mathrm{ly}\): cosmological env.
\(\sim 1\,\mathrm{ly}\): supernova scale
⇒ \(>6\) orders of magnitude resolution
⇒ \(10^{18}\) updates
\(230\,\mathrm{yr}\) on my laptop's CPU
\(18\,\mathrm{yr}\) on my GPU
\(11\,\mathrm{month}\) on an NVIDIA H100
{{author}} — {{#}}/{{total}}
of existing code (RAMSES) / Vintergatan simulation
Took:
RAMSES: Teyssier 2003
Vintergatan: Cadiou in prep, Agertz+21
Efficiency: green top 500
DM
gas
star
\(\sim 5-15\,\mathrm{Gflop/W}\)
\(\sim 30-70\,\mathrm{Gflop/W}\)
\(\sim2\,\mathrm{tCO_{2,eq}}\)
\(<1\,\mathrm{tCO_{2,eq}}\)?
{{author}} — {{#}}/{{total}}
Data: Top-500
Various architectures with very different and fast-changing
architectures
Consequently:
{{author}} — {{#}}/{{total}}
Manage grid, simple computation
Computation-heavy
(hydro, gravity, …)
CPU
GPU
[…]
wasted
time
wasted
time
Typical approach: offloading ⇒ hard to benefit from shared parallelism
Dyablo's approach:
Amdahl's law: latency kills gains of parallelisation
San+25 (RAMSES w/ OpenMP)
Kim'26 (RAMSES w/ CUDA)
Teyssier+26 (RAMSES w/ CUDA Fortran)
{{author}} — {{#}}/{{total}}
Manage grid, simple computation
Computation-heavy
(hydro, gravity, …)
CPU
GPU
(or CPUs)
[…]
Dyablo's approach: “true” GPU computing, CPU as a puppeteer
Typical approach: offloading ⇒ hard to benefit from shared parallelism
{{author}} — {{#}}/{{total}}
Dyablo
Dyablo
…
MPI
distributed
parallelism
Kernel 1
Kernel 2
Kernel 3
Kernel 4
…
Kokkos ⇒ shared parallelism
OpenMP
Sycl
CUDA
HIP
Users write plugins that invoque kernels. Eg:
Plugins have limited access to:
through a strict API ⇒ change of backend doesn't change the plugin
MPI
distributed
parallelism
{{author}} — {{#}}/{{total}}
Open source and community centered
Open-source:
Community:
Git workflow
dyablo-core
Application specific branches (eg)
Applicative branches
Core feature branches (eg)
Slide adapted from M. Delorme
{{author}} — {{#}}/{{total}}
{{author}} — {{#}}/{{total}}