Cosmology Unified · GPU-native research software
From cosmology to observables
Run a reproducible pipeline from linear theory and initial conditions through structure formation, 21-cm reionization and mock surveys.
CU-Suite
Shared configuration, provenance and calibration
- CosmoCULinear spectra and transfer functions
- ICU3LPT initial conditions
- gravityCUStructure, halos and lightcones
Nonlinear fields and catalogs feed two branches
21cmCU21-cm reionization and inference
ObsCUWeak lensing and mock surveys
Spec C · Tested workflow
Calibrating baryon feedback
The paired dark-matter-only and hydrodynamic runs feed the power-spectrum suppression into CosmoCU to fit the HMcode feedback parameter.
- Paired runtime
- 261.06 s
- Baryon mass error
- 1.81 × 10−7
- HMcode logTAGN
- 8.0924
- Fit RMSE
- 0.0110
Choose the engine for your task
Run components on their own, or connect them through the CU-Suite project configuration.
| Component | Role | Alternative To | Canonical Repository |
|---|---|---|---|
| CosmoCU | Einstein–Boltzmann, HMcode/BCM/EFTofLSS & AD Truth | CLASS, CAMB | HainaHuang729/CosmoCU |
| ICU | GPU/CPU/MPI 1LPT/2LPT/3LPT Initial Conditions | monofonIC, MUSIC | HainaHuang729/ICU |
| gravityCU | Multi-GPU TreePM, SPH Hydro, Merger Trees & Lightcones | SWIFT, GADGET-4 | Site · Repo |
| 21cmCU | Native C/CUDA + cuFFT 21cm EoR & Bayesian Samplers | 21cmFAST v4, 21CMMC | HainaHuang729/21cmCU |
| ObsCU | Survey Forward Modeling (WL, Galaxies, Lyα, tSZ/kSZ, SBI) | PyCCL, Halotools, GLASS | HainaHuang729/ObsCU |
| CU-Suite | TOML Contract, cu-suite doctor, Provenance & Calibration | Multi-code glue scripts | HainaHuang729/CU-Suite |
Read the data interfaces and units in the architecture guide
Component benchmark notes
- CosmoCU reported a 0.045% median deviation in unlensed CMB TT against CAMB 2.0.5 over 30 ≤ ℓ ≤ 3000.
- ICU used 16.86× less memory for streaming 3LPT at 1024³ compared with conventional 3/2-padded FP64.
- gravityCU kept 1024³ particles resident on four RTX A6000 GPUs and reported a 7.26×–9.64× evolution speedup across tested windows against 256-core CPU SWIFT.
- 21cmCU runs 2048³ 21-cm reionization slabs and provides C99 nested sampling.
- ObsCU measured an 85.5× speedup for the full-sky Born streaming workload, with 0.0946 s on an RTX 4090 versus 8.0928 s on the CPU. Benchmark protocol
Quickstart
Use Python 3.11 or later. Clone the orchestrator, check available engines and validate the example configuration.
git clone https://github.com/HainaHuang729/CU-Suite.git && cd CU-Suite
PYTHONPATH=src python3 -m cu_suite.cli doctor
PYTHONPATH=src python3 -m cu_suite.cli validate-config configs/cu_project_example.toml