arXiv · 2607.24908
TempLat: a versatile C++ engine for lattice field theories
Abstract
We present TempLat, a C++ framework for lattice field theory simulations in arbitrary dimensions. Its symbolic language, built on expression templates, translates mathematical expressions almost verbatim into C++ while compiling to highly optimized kernels, in contexts ranging from classical-statistical to Monte Carlo simulations. TempLat is performance-portable: building on Kokkos, it supports large CPU clusters, as well as NVIDIA and AMD GPUs. Its abstraction of hardware into a device concept makes TempLat extensible to future architectures. We demonstrate excellent strong and weak scaling on both CPUs and GPUs. We also present ParaFaFT, a standalone parallel discrete Fourier transform library supporting arbitrary dimensions on all of the above hardware, and benchmark its scaling. Both are open source and available on GitHub, and power a new release of CosmoLattice, a widely used early-universe simulation library now available on GPUs.
Explore related subjects
Keep this discovery
Adrien Florio, Franz R. Sattler. 2026-07-27. TempLat: a versatile C++ engine for lattice field theories. https://arxiv.org/abs/2607.24908
Cite the original work for its findings. Save a collection to share your selection of sources.