libyt: a Tool for Parallel In Situ Analysis with yt
summary
libyt is a C++ library that embeds yt via the Python C API and NumPy C API to do zero‑copy in situ analysis of AMR simulation data, exposing simulation memory as read‑only NumPy arrays and enabling back‑communication through C extension callbacks. It uses MPI one-sided RMA to redistribute requested blocks without explicit send/recv. Demonstrations with GAMER/Enzo show 116 GB snapshots over 321 steps would need ~37 TB if dumped but libyt reduces output to ~0.5 TB (≈15× less) and adds no extra runtime penalty.
AI-written summary · about
chapters (13)
- 0:00Introduction to libyt
- 1:48Motivation for libyt
- 4:18How libyt connects simulation and Python
- 8:32Libyt Python module overview
- 11:01Data redistribution in libyt
- 12:49Converting post-processing to in situ
- 13:53Interactive Python prompt in libyt
- 14:59Fuzzy dark matter simulation
- 17:50Core collapse supernova analysis
- 19:11Performance scaling of libyt
- 20:57Current limitations and future plans
- 21:38Advantages of libyt
- 22:25Q&A session
