The Celeritas project implements HEP detector physics on GPU accelerator hardware with the ultimate goal of supporting the massive computational requirements of the HL-LHC upgrade.
Since Celeritas is still under heavy development and is not yet full-featured for downstream integration, you are likely installing it for development purposes. The infrastructure documentation has a complete description of the code's dependencies and installation process for development.
As an example, if you have the Spack package manager installed and want to do development on a CUDA system with Volta-class graphics cards, execute the following steps:
# Set up CUDA (optional)
$ spack external find cuda
$ spack config add packages:all:variants:"+cuda cuda_arch=70"
# Install celeritas dependencies
$ spack env create celeritas scripts/spack.yaml
$ spack env activate celeritas
$ spack install
# Configure, build, and test
$ ./build.sh base
If you don't use Spack but have all the dependencies you want (Geant4,
googletest, VecGeom, etc.) in your CMAKE_PREFIX_PATH
, you can configure and
build Celeritas as you would any other project:
$ mkdir build && cd build
$ cmake ..
$ make && ctest
Celeritas guarantees full compatibility and correctness only on the combinations of compilers and dependencies tested under continuous integration. Currently supported compilers are GCC 11.2 + NVCC 11.8, and HIP-Clang 15.0, but since we compile with extra warning flags and avoid non-portable code, most other compilers should work. Currently Geant4 11.0 and VecGeom 1.2 are the only versions that are guaranteed to work, but older versions might be OK. The full set of configurations is viewable on the CI web site. Compatibility fixes that do not cause newer versions to fail are welcome.
The easiest way to install Celeritas as a library/app is with Spack:
- Follow the first two steps above to install Spack and set up its CUDA usage.
- Install Celeritas with
spack install celeritas
- Use
spack load celeritas
to add the installation to yourPATH
.
Then see the "Downstream usage as a library" section of the infrastructure documentation for how to use Celeritas in your application or framework.
See the contribution guide for the contribution process, the development guidelines for further details on coding in Celeritas, and the administration guidelines for community standards and roles.
The full code documentation (including API descriptions) is available by
setting the CELERITAS_BUILD_DOCS=ON
configuration option. A mostly complete
version of the Celeritas documentation is hosted on readthedocs.io
.
If using Celeritas in your work, we ask that you cite the code using its DOECode registration:
Johnson, Seth R., Amanda Lund, Soon Yung Jun, Stefano Tognini, Guilherme Lima, Paul Romano, Philippe Canal, Ben Morgan, and Tom Evans. “Celeritas,” July 2022. https://doi.org/10.11578/dc.20221011.1.
Additional references for code implementation details, benchmark problem results, etc., can be found in our continually evolving citation file.