This repository provides a hybrid CPU–GPU simulation environment integrating:
- Geant4: Particle transport and detector simulation
- Opticks: GPU-accelerated optical photon simulation
The workflow enables fast optical photon propagation on GPUs while retaining Geant4’s CPU-based handling of all other particles.
- CUDA Toolkit 11.7 (Tested)
- NVIDIA GPU with OptiX support (7.5) (Tested)
- Geant4 (with GDML support enabled)
- Opticks
- ROOT (for output handling and visualization)
git clone https://github.com/nuRiceLab/OpticalSims
cd OpticalSimsmkdir build && cd build && cmake -DWith_Opticks=true -DWITH_GEANT4_VIS=true ..
make -j2./gdml_det i GDML/dune10kt_v5_refactored_1x2x6_nowires.gdml g04.mac
./gdml_det GDML/dune10kt_v5_refactored_1x2x6_nowires.gdml g04.mac
