Repository navigation
Releases
Releases · HainaHuang729/gravityCU
gravityCU v3.0.0 — Full Baryon/AGN/f(R) Physics, 4.29e-7 FP64 Ewald, Zero-Dep Build & E1–E6
Highlights (All 11 Gates GPU-Verified on Google Colab Tesla T4 / CUDA 13.0)
Interactive bilingual showcase: https://hainahuang729.github.io/gravityCU/ (English)
Part 1 — Full Baryon Physics, Nonlinear $f(R)$ Gravity & Online Analysis (v3.1–v3.5)
-
v3.1 — C-ABI
dlopenPlugins & GPU CHIMES/PS20 Cooling Table (reports/v31-plugins-chimes-gate.json): Addedsrc/grav_plugin.h(GRAV_PLUGIN_ABI_VERSION=1,GRAV_PLUGINS) andsrc/grav_chimes_table.cuh(64×64 GPUchimes_ps20metal-line cooling + Haardt–Madau UVB + Rahmati+2013 self-shielding); UVB IGM equilibrium$T_{\rm med}\approx 1.2\times 10^4,\text{K}$ ,4.58×$T_{\max}$ metal-cooling suppression,+2.05%stellar boost, exact0.0baryon mass error. -
v3.2 — Stochastic Thermal SN Feedback & Delayed Chemical Enrichment (
reports/v32-baryon-subgrid-gate.json): Addedsrc/grav_baryon_subgrid.cuh(Dalla Vecchia & Schaye 2012$\Delta T_{\rm heat}=10^{7.5},\text{K}$ + SNII/SNIa/AGB delayed yields coupled into live per-particle$Z_i$ cooling);-32.2%star-formation self-regulation,3.46×p99 overdensity drop,1.77e7 Koutflows,5.82×metal enrichment,5.82e-10baryon mass conservation. -
v3.3 — SMBH Seeding, Bondi–Hoyle Accretion & Dual-Mode AGN Feedback (
reports/v33-smbh-agn-gate.json): Addedsrc/grav_smbh_agn.cuh(atomicCAShalo-core seeding, Eddington-capped Bondi–Hoyle accretion, Booth & Schaye 2009$\Delta T_{\rm AGN}=10^{8.5},\text{K}$ quasar heating, and bipolar radio kinetic jets);17SMBHs grown11.07×,-48.7%total SF quenching vs. no-FB,2.51e7 KCGM,12.42%WHIM,6.59e-10mass conservation. -
v3.4 — Nonlinear
$f(R)$ GPU FAS Multigrid Relaxation Solver (reports/v34-fr-multigrid-gate.json): Addedsrc/grav_fr_multigrid.cuh(4-level 3D GPU Red–Black Newton–GS with Oyaizuexpm1cancellation-free transform & trilinear prolongation); F6$\delta_{\rm peak}=2000$ relative residual2.23e-16,42,845×Chameleon screening, 7-digit Yukawa recovery (4.78e-15–1.88e-14), 50-step nonlinear cosmo-hydro in8.76 s. -
v3.5 — On-the-Fly GPU 6D Phase-Space Subhalo Finder & tSZ/X-ray Projection (
reports/v35-online-analysis-gate.json): Addedsrc/grav_online_analysis.cuh;32.49 msexact de-blending of spatially overlapping host+subhalo (1,981/2,000+500/500),2.02 ms256×256 Compton-$y$ / bolometric X-ray projection with4.23e-15/1.58e-15flux conservation.
Part 2 — Zero-Dependency Engine Build, Accuracy & Exascale Engineering (E1–E6 / v3.6–v3.11)
-
v3.6 (E4) — 100% Zero-External-Dependency Engine Build & CUDA 13.0 (
reports/v36-e4-zero-dep-gate.json): Added MIT-licensedsrc/grav_fmm_native.cuh(Dehnen 2001 Wendland C2 +erfcderivatives + 4th-order M2P/M2L) and Thrust CUDA 13.0 iterators;make engine && make smokepasses cleanly out-of-the-box withKERNEL_BUILD_DIR=""(ALL_SMOKE_TESTS_PASSED,$64^3$ 2.237 s). -
v3.7 (E5) — FP64 Short-Range P2P Force Accumulation (
reports/v37-e5-fp64-ewald-gate.json): Exact 3D periodic Ewald median total-force error pushed down to4.29e-7(2.60×below FP321.12e-6), plus 512-step$64^3$ GRAV_PRECISION_MODE=highevolution withbad_count=0. -
v3.8 (E1) — GPU Locally Essential Tree (LET) Remote Pruning (
reports/v38-e1-let-pruning-gate.json): Addedsrc/grav_let_pruning.cuh(0.40 msGPU BFS pruning on$64^3$ ,4.38×152 Bwire-packet compression,2.31e-3median remote force parity at$\theta=0.70$ ). -
v3.9 (E2) — 32-Bit Fixed-Point Compact VRAM Coordinates (
reports/v39-e2-compact-coords-gate.json): Addedsrc/grav_compact_coords.cuhpacking 3×32-bit coordinates +floatmass into a single16 Buint4(2.50×coordinate VRAM savings),1.16e-8 Mpcmax quantization in100 Mpc,7.60e-9P2P force error (186×better thanfloat4FP32). -
v3.10 (E3) — Unified
GravSimulationEngine/GravDomainBackend& Main-Engine Plugins (reports/v310-e3-sim-engine-gate.json): Addedsrc/grav_sim_engine.hand wiredPluginRegistryintosrc/multi_gpu_slab.cu; exact0.00e+003-backend (1d_slab/3d_hilbert/3d_mpi) energy parity,2.71e-7symplectic drift, live$64^3$ GPU run2.34 s(bad_count=0,65/65hooks). -
v3.11 (E6) — Native Async Incremental Checkpoint & Direct HDF5 I/O (
reports/v311-e6-checkpoint-io-gate.json): Addedsrc/grav_checkpoint_io.h(GCKP+ FNV-1a + atomicrename+GravAsyncCheckpointWriter+ optional-DGRAV_ENABLE_HDF5SWIFT/Gadget-4/Header&/PartType1/*direct I/O); 100K particles (10%mutated) achieves8.571×delta compression (7.47 mssubmit),0bit mismatches across full+delta and HDF5 round-trips, single-byte corruption detection, and Pythonh5pycross-verification.
Full Changelog: v2.0.0...v3.0.0
gravityCU v2.0.0 — High-Precision, Multi-Physics, Full-GPU Hydro & 2-Node MPI
Highlights (All Verified on NVIDIA RTX 4090 / A6000)
Track 1 — Numerical Precision (P1–P3)
-
P1 High-Order PM & IC Adapters:
CIC/TSC/PCS+ symmetricInterlacing+-ikspectral gradient across single-GPU, distributed, and MPI PM backends +monofonIC/MUSICIC adapter (Ewald 5.58e-5, 18.5× gain). -
P2 High-Precision Mode (
GRAV_PRECISION_MODE=high):PCS+Interlace+ik+rcut=5.5+ exacterfc/exp+mac=1e-4-> Ewald median total-force error1.014e-5(102× vs. baseline),$64^3$ Zel'dovich RMS0.0382%(14.5×). -
P3 Adaptive Tidal/Dynamical Timestep & Symplectic Sync: 32K isolated Plummer energy drift
7.64e-7(15.1×, beating< 1e-6).
Track 2 — Physics Breadth (B1–B4 + Coupled Cosmological Hydro)
-
B1 Massive Neutrinos: Zero-VRAM
$k$ -space linear response + Komatsu+2011$H(a)$ +CLASS/CAMBtable support; 3-scale suppression matches exact linear ODE to0.009%–0.028%. -
B2 Dark Sector (MC-SIDM + $f(R)$): Race-free warp round-robin octree-leaf GPU MC-SIDM (
107kscatters in25 s,9.35e-12kinetic conservation, gravothermal core collapse) + Hu–Sawicki$n=1$ $f(R)$ gravity (0.0001%–0.179%vs. ODE). -
B3 Multi-Mass Zoom-in: 9-level
4096³-equivalent halo (16.78M×mass ratio,0.61 kpcsoftening),0LR contamination inside$R_{200c}$ and$2,R_{200c}$ ,35GPU-FoF subhalos. -
B4 Full-GPU 3D SPH + Coupled Cosmological PM+SPH: 8/8 hydro benchmarks passed — 3D Sod (
2.28%$\rho$ L1),$48^3$ Sedov–Taylor (0.67%shock radius), Kelvin–Helmholtz (516×$E_{k,y}$ growth), GPU cooling (2.44e-15), Santa Barbara cluster (13.96×entropy rise), comoving adiabatic expansion (1.78e-15), 3D Zel'dovich pancake (4.12×10^6 Kshock), and$48^3$ DM +$48^3$ Gas (221K) cosmological box (23.3%WHIM, baryon conservation3.23e-11).
Phase 2 — True Cross-Node 2N×1G MPI (b[4,6])
-
Gates M1 / M2 / M3: Cross-node MPI PM (
3.89e-16),$64^3$ 2-node 3D Hilbert parity (pos_rms/L = 2.59e-6), and$256^3$ (16.78M) 2-node zero-error completion (Slurm 492195).