Repository navigation
gravityCU v3.0.0 — Full Baryon/AGN/f(R) Physics, 4.29e-7 FP64 Ewald, Zero-Dep Build & E1–E6
LatestHighlights (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