Build From Source
Configure
cmake -S . -B ./adept-build \
-DCMAKE_CUDA_ARCHITECTURES=<cuda_architecture> \
-DCMAKE_BUILD_TYPE=Release \
<otherargs>
If not using CVMFS, pass dependency prefixes:
-DCMAKE_PREFIX_PATH="<path_to_geant4_installation>;<path_to_veccore_installation>;<path_to_vecgeom_installation>;<path_to_g4hepem_installation>;<path_to_hepmc3_installation>"
Build
cmake --build ./adept-build -- -j6
Important CMake Options
Option |
Default |
Description |
|---|---|---|
|
|
Use external B field from file via the covfie library. If ON, the constant field values are ignored and only B fields from file are accepted! |
|
|
Run split version of the transport kernels |
|
|
Enable surface model navigation on GPU (still in development, unstable for geometries with overlaps) |
|
|
Use B-field integration and surface model in mixed precision |
|
|
Run transport kernels in single thread mode |
|
|
Debug tracking level (0=off, >0=on with levels) |
|
|
Use strict compiler flags, as also used in CMSSW. Many warnings are promoted to errors using this flag. |
|
|
Build unit and regression tests |
|
|
Build examples |
|
|
Compile the code for consumption measurement |
|
|
Compile CUDA profiler API hooks for transport-loop |
|
|
SteppingAction mode: |
|
|
Fetch and build G4VG as part of AdePT (used when Geant4 integration is enabled) |
Optional: Run Tests
ctest --test-dir ./adept-build --output-on-failure