Skip to content

gravityCU v3.0.0 — Full Baryon/AGN/f(R) Physics, 4.29e-7 FP64 Ewald, Zero-Dep Build & E1–E6

Latest

Choose a tag to compare

@HainaHuang729 HainaHuang729 released this 29 Nov 04:17
· 45 commits to main since this release

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 dlopen Plugins & GPU CHIMES/PS20 Cooling Table (reports/v31-plugins-chimes-gate.json): Added src/grav_plugin.h (GRAV_PLUGIN_ABI_VERSION=1, GRAV_PLUGINS) and src/grav_chimes_table.cuh (64×64 GPU chimes_ps20 metal-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, exact 0.0 baryon mass error.
  • v3.2 — Stochastic Thermal SN Feedback & Delayed Chemical Enrichment (reports/v32-baryon-subgrid-gate.json): Added src/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 K outflows, 5.82× metal enrichment, 5.82e-10 baryon mass conservation.
  • v3.3 — SMBH Seeding, Bondi–Hoyle Accretion & Dual-Mode AGN Feedback (reports/v33-smbh-agn-gate.json): Added src/grav_smbh_agn.cuh (atomicCAS halo-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); 17 SMBHs grown 11.07×, -48.7% total SF quenching vs. no-FB, 2.51e7 K CGM, 12.42% WHIM, 6.59e-10 mass conservation.
  • v3.4 — Nonlinear $f(R)$ GPU FAS Multigrid Relaxation Solver (reports/v34-fr-multigrid-gate.json): Added src/grav_fr_multigrid.cuh (4-level 3D GPU Red–Black Newton–GS with Oyaizu expm1 cancellation-free transform & trilinear prolongation); F6 $\delta_{\rm peak}=2000$ relative residual 2.23e-16, 42,845× Chameleon screening, 7-digit Yukawa recovery (4.78e-15–1.88e-14), 50-step nonlinear cosmo-hydro in 8.76 s.
  • v3.5 — On-the-Fly GPU 6D Phase-Space Subhalo Finder & tSZ/X-ray Projection (reports/v35-online-analysis-gate.json): Added src/grav_online_analysis.cuh; 32.49 ms exact de-blending of spatially overlapping host+subhalo (1,981/2,000 + 500/500), 2.02 ms 256×256 Compton-$y$ / bolometric X-ray projection with 4.23e-15 / 1.58e-15 flux 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-licensed src/grav_fmm_native.cuh (Dehnen 2001 Wendland C2 + erfc derivatives + 4th-order M2P/M2L) and Thrust CUDA 13.0 iterators; make engine && make smoke passes cleanly out-of-the-box with KERNEL_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 to 4.29e-7 (2.60× below FP32 1.12e-6), plus 512-step $64^3$ GRAV_PRECISION_MODE=high evolution with bad_count=0.
  • v3.8 (E1) — GPU Locally Essential Tree (LET) Remote Pruning (reports/v38-e1-let-pruning-gate.json): Added src/grav_let_pruning.cuh (0.40 ms GPU BFS pruning on $64^3$, 4.38× 152 B wire-packet compression, 2.31e-3 median remote force parity at $\theta=0.70$).
  • v3.9 (E2) — 32-Bit Fixed-Point Compact VRAM Coordinates (reports/v39-e2-compact-coords-gate.json): Added src/grav_compact_coords.cuh packing 3×32-bit coordinates + float mass into a single 16 B uint4 (2.50× coordinate VRAM savings), 1.16e-8 Mpc max quantization in 100 Mpc, 7.60e-9 P2P force error (186× better than float4 FP32).
  • v3.10 (E3) — Unified GravSimulationEngine / GravDomainBackend & Main-Engine Plugins (reports/v310-e3-sim-engine-gate.json): Added src/grav_sim_engine.h and wired PluginRegistry into src/multi_gpu_slab.cu; exact 0.00e+00 3-backend (1d_slab / 3d_hilbert / 3d_mpi) energy parity, 2.71e-7 symplectic drift, live $64^3$ GPU run 2.34 s (bad_count=0, 65/65 hooks).
  • v3.11 (E6) — Native Async Incremental Checkpoint & Direct HDF5 I/O (reports/v311-e6-checkpoint-io-gate.json): Added src/grav_checkpoint_io.h (GCKP + FNV-1a + atomic rename + GravAsyncCheckpointWriter + optional -DGRAV_ENABLE_HDF5 SWIFT/Gadget-4 /Header & /PartType1/* direct I/O); 100K particles (10% mutated) achieves 8.571× delta compression (7.47 ms submit), 0 bit mismatches across full+delta and HDF5 round-trips, single-byte corruption detection, and Python h5py cross-verification.

Full Changelog: v2.0.0...v3.0.0