GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KiT-RT/kitrt_code: A high performance framework for radiation therapy simulation and numerical solutions for kinetic equations.

BranchesTags
Open more actions menu

Latest commit

 

History

1,315 Commits
1,315 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmake
cmake
 
 
data
data
 
 
doc
doc
 
 
examples
examples
 
 
examples_hpc
examples_hpc
 
 
ext
ext
 
 
include
include
 
 
src
src
 
 
tests
tests
 
 
tfmodels
tfmodels
 
 
tools
tools
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.readthedocs.yml
.readthedocs.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

KiT-RT: Modular, HPC-Ready Radiative Transport Solver

License: MIT GitHub Stars Build Status Coverage Status Docs

Overview

KiT-RT is an open-source, multi-fidelity C++ PDE solver for radiative transport in fusion, fission, and radiation therapy simulations. Designed from the ground up for AI-accelerated scientific computing, it supports hybrid neural–PDE workflows, enabling high-resolution reference solutions, scalable data generation for scientific foundation models, and outer-loop workflows such as uncertainty quantification and design optimization.

Scientific Impact

KiT-RT has been adopted by research and engineering teams of:

  • NVIDIA
  • Sandia National Labs
  • Lawrence Livermore National Labs
  • Oak Ridge National Labs
  • Karlsruhe Institute of Technology
  • TU Delft
  • NMBU Norway
  • RIKEN Japan

Applications include:

  • Foundation model training for fusion simulation.
  • Large-scale UQ experiments.
  • Radiation therapy planning.
  • Accelerated neural network inference.
  • Reference dataset generation for ML-based surrogate models.

Start here

KiT-RT has two layers:

  • kitrt_code: this C++ solver repository. Use it to build the solver, run one deterministic config, or extend solver internals.
  • CharmKiT: the Python workflow layer for lattice/hohlraum sweeps, SLURM submission, CSV inputs, and QOI collection.

Ten-minute CPU smoke test

Prerequisites for the CPU smoke test:

  • C++17 compiler, CMake 3.16+, Git, and initialized submodules
  • OpenMP, BLAS, LAPACK, and VTK development libraries
  • Python 3.10+ for tools/check_smoke_output.py
git clone https://github.com/KiT-RT/kitrt_code.git
cd kitrt_code
git submodule update --init --recursive
cmake -S . -B build_omp -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF
cmake --build build_omp -j
./build_omp/KiT-RT examples/configs/smoke_test.cfg
python tools/check_smoke_output.py examples/result/smoke_test

Expected result: PASS, at least one VTK/VTU file in examples/result/smoke_test/, and a finite mass in the CSV log. See doc/tutorials/smoke_test.rst for details.

I want sweeps or SLURM

Use CharmKiT:

poetry run charm-kit run lattice --singularity
poetry run charm-kit submit lattice --cuda

I am stuck

See doc/troubleshooting.rst before opening an issue.

Key Features

  • Modular, HPC-ready architecture. Supports hybrid MPI/OpenMP distributed parallelism.
  • Containerized for portable deployment across HPC systems (Docker, Apptainer, and Singularity).
  • Python-wrapped via CharmKiT
  • Downstream applications:
    • Data generation for scientific foundation models.
    • high-resolution reference solutions for AI-based surrogate modeling.
    • Plug-and-play integration for outer-loop workflows (UQ, optimization).

Publications & References

Core Software

  • KiT-RT: An Extendable Framework for Radiative Transfer and Therapy — ACM Transactions on Mathematical Software [DOI]

Datasets & Benchmarks

  • Reference solutions for linear radiation transport: the Hohlraum and Lattice benchmarks — arXiv:2505.17284 [PDF]

Neural–PDE Integration

  • Structure-Preserving Operator Learning — arXiv:2402.16613 [PDF]
  • Structure-preserving neural networks for entropy-based closure — Journal of Computational Physics [DOI], ICML [Link], AIAA [DOI]
  • PhD Thesis: Synergies between Numerical Methods for Kinetic Equations and Neural Networks

Installation and Run (By Parallelization)

One-time setup:

git clone https://github.com/KiT-RT/kitrt_code.git
cd kitrt_code
git submodule update --init --recursive

Then run all commands from the repository root.

1. CPU (OpenMP only)

1a) Plain installation (no container)

mkdir -p build_omp
cd build_omp
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
make -j
cd ..
./build_omp/KiT-RT tests/input/validation_tests/SN_solver/checkerboard_SN.cfg

1b) Docker installation

docker build -t kitrt/test:local tools/docker
docker run --rm -it -v "$(pwd):/mnt" -w /mnt kitrt/test:local /bin/bash
mkdir -p build_docker_omp
cd build_docker_omp
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
make -j
cd ..
./build_docker_omp/KiT-RT tests/input/validation_tests/SN_solver/checkerboard_SN.cfg

1c) Singularity installation

cd tools/singularity
sudo singularity build kit_rt.sif kit_rt.def
cd ../..
mkdir -p build_singularity_omp
cd build_singularity_omp
singularity exec ../tools/singularity/kit_rt.sif \
  cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
singularity exec ../tools/singularity/kit_rt.sif make -j
cd ..
singularity exec tools/singularity/kit_rt.sif \
  ./build_singularity_omp/KiT-RT tests/input/validation_tests/SN_solver/checkerboard_SN.cfg

2. CPU (OpenMP + MPI)

2a) Plain installation (no container)

mkdir -p build_mpi
cd build_mpi
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=ON -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
make -j
cd ..
mpirun -np 4 ./build_mpi/KiT-RT tests/input/validation_tests/SN_solver_hpc/lattice_hpc_200_cpu_order2.cfg

2b) Singularity installation

cd tools/singularity
sudo singularity build kit_rt_MPI.sif kit_rt_MPI.def
cd ../..
mkdir -p build_singularity_mpi
cd build_singularity_mpi
singularity exec ../tools/singularity/kit_rt_MPI.sif \
  cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=ON -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
singularity exec ../tools/singularity/kit_rt_MPI.sif make -j
cd ..
singularity exec tools/singularity/kit_rt_MPI.sif \
  mpirun -np 4 ./build_singularity_mpi/KiT-RT tests/input/validation_tests/SN_solver_hpc/lattice_hpc_200_cpu_order2.cfg

3. CPU + GPU backend (single or multi-GPU via MPI)

3a) CUDA (Singularity installation)

cd tools/singularity
sudo singularity build kit_rt_MPI_cuda.sif kit_rt_MPI_cuda.def
cd ../..
mkdir -p build_singularity_cuda
cd build_singularity_cuda
singularity exec --nv ../tools/singularity/kit_rt_MPI_cuda.sif \
  cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=ON -DBUILD_CUDA_HPC=ON -DBUILD_ML=OFF ..
singularity exec --nv ../tools/singularity/kit_rt_MPI_cuda.sif make -j
cd ..
singularity exec --nv tools/singularity/kit_rt_MPI_cuda.sif \
  mpirun -np 2 ./build_singularity_cuda/KiT-RT tests/input/validation_tests/SN_solver_hpc/lattice_hpc_200_cuda_order2.cfg

When compiled with -DBUILD_CUDA_HPC=ON, HPC runs use the CUDA backend if a GPU is visible, and fall back to CPU if no GPU is detected.

3b) ROCm/HIP (Singularity installation)

cd tools/singularity
sudo singularity build kit_rt_MPI_rocm72.sif kit_rt_MPI_rocm72.def
cd ../..
mkdir -p build_singularity_rocm72
cd build_singularity_rocm72
singularity exec --rocm ../tools/singularity/kit_rt_MPI_rocm72.sif \
  cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=ON -DBUILD_CUDA_HPC=OFF -DBUILD_HIP_HPC=ON -DBUILD_ML=OFF ..
singularity exec --rocm ../tools/singularity/kit_rt_MPI_rocm72.sif make -j
cd ..
singularity exec --rocm tools/singularity/kit_rt_MPI_rocm72.sif \
  mpirun -np 2 ./build_singularity_rocm72/KiT-RT tests/input/validation_tests/SN_solver_hpc/lattice_hpc_200_cuda_order2.cfg

When compiled with -DBUILD_HIP_HPC=ON, HPC runs use the HIP backend if a ROCm-capable GPU is visible, and fall back to CPU if no GPU is detected.

4. Build with TensorFlow backend (CPU + OpenMP only)

FILENAME=libtensorflow-cpu-linux-x86_64-2.7.0.tar.gz
wget -q --no-check-certificate https://storage.googleapis.com/tensorflow/libtensorflow/${FILENAME}
sudo tar -C /usr/local -xzf ${FILENAME}
sudo ldconfig /usr/local/lib
rm ${FILENAME}
mkdir -p build_ml
cd build_ml
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=ON ..
make -j
cd ..
./build_ml/KiT-RT tests/input/validation_tests/MN_solver/checkerboard_MN_neural.cfg

5. Debug build

mkdir -p build_debug
cd build_debug
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF ..
make -j
cd ..
./build_debug/KiT-RT tests/input/validation_tests/SN_solver/checkerboard_SN.cfg

6. Test + coverage build

mkdir -p build_coverage
cd build_coverage
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DBUILD_CODE_COV=ON -DBUILD_UNITY=OFF ..
make -j
./unit_tests
ctest --output-on-failure
gcovr -r .. --html-details coverage.html

Python API

The Python workflow interface is provided via CharmKiT, allowing integration into AI and outer-loop (UQ, Optimization) workflows. Check the corresponding readme for further info.

License

KiT-RT is released under the MIT License. See LICENSE for details.

Cite this software using

@article{kitrt2023,
    title={KiT-RT: An extendable framework for radiative transfer and therapy},
    author={Kusch, Jonas and Schotth{\"o}fer, Steffen and Stammer, Pia and Wolters, Jannick and Xiao, Tianbai},
    journal={ACM Transactions on Mathematical Software},
    volume={49},
    number={4},
    pages={1--24},
    year={2023},
    publisher={ACM New York, NY}
}

About

A high performance framework for radiation therapy simulation and numerical solutions for kinetic equations.

kit-rt.readthedocs.io/en/develop/index.html

Topics

data-generationdeep-learningfinite-volumegpu-simulationradiative-transfertensorflow

Resources

Readme
License
Activity
Custom properties

Stars

28 stars

Watchers

2 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.