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.

The 4 + 2 workflow

Four engines, a forward-modeling layer and one orchestrator.

CU-Suite Shared configuration, provenance and calibration
  1. CosmoCULinear spectra and transfer functions
  2. ICU3LPT initial conditions
  3. 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
Open the run record
CU-Suite Spec C closed-loop baryon calibration power suppression S_bar(k) and HMcode-CU fit
64³, 100 Mpc box, one RTX 4090. Select the figure for the full-resolution plot.

Choose the engine for your task

Run components on their own, or connect them through the CU-Suite project configuration.

ComponentRoleAlternative ToCanonical Repository
CosmoCUEinstein–Boltzmann, HMcode/BCM/EFTofLSS & AD TruthCLASS, CAMBHainaHuang729/CosmoCU
ICUGPU/CPU/MPI 1LPT/2LPT/3LPT Initial ConditionsmonofonIC, MUSICHainaHuang729/ICU
gravityCUMulti-GPU TreePM, SPH Hydro, Merger Trees & LightconesSWIFT, GADGET-4Site · Repo
21cmCUNative C/CUDA + cuFFT 21cm EoR & Bayesian Samplers21cmFAST v4, 21CMMCHainaHuang729/21cmCU
ObsCUSurvey Forward Modeling (WL, Galaxies, Lyα, tSZ/kSZ, SBI)PyCCL, Halotools, GLASSHainaHuang729/ObsCU
CU-SuiteTOML Contract, cu-suite doctor, Provenance & CalibrationMulti-code glue scriptsHainaHuang729/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

Open the documentation