Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Deprecated prototype for Celeritas/Geant4 integration

Notifications You must be signed in to change notification settings

celeritas-project/acceleritas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: THIS REPOSITORY IS OBSOLETE

This was a prototype for integrating Celeritas into Geant4 for offloading support. The key components of Soon's research implementation have been integrated into Celeritas as part of the accel library. See the latest Acceleritas documentation for details on the supported capabilities.

Acceleritas Geant!

With this incantation we hope to use the magic of GPU accelerators and Geant4's new tasking model to offload EM showers from Geant4 to Celeritas to accelerate HEP simulations.

Installation

Requirements:

  • CUDA
  • Geant4 (Version 11.0) (with GEANT4_USE_GDML=ON)
  • VecGeom (Version 1.1.18) (with DBACKEND="Scalar" and CUDA="ON")
  • ROOT (Version 6.XX.X)

Configuring and building acceleritas

An example CMake command looks like with the CUDA Capability 7.0 (assuming that celeritas required products are installed at ${INSTALL_DIR}:

cmake ${SRC_DIR}/acceleritas \
      -D CELERITAS_USE_CUDA=ON \
      -D CELERITAS_USE_Geant4=ON  \
      -D CELERITAS_USE_VecGeom=ON \
      -D CELERITAS_USE_ROOT=ON \
      -D CMAKE_CUDA_ARCHITECTURES=70 \
      -D CMAKE_BUILD_TYPE="RelWithDebInfo" \
      -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror" \
      -D CMAKE_PREFIX_PATH="${INSTALL_DIR};${XERCES_C_DIR}" \
      -D Geant4_DIR=${GEANT4_BUILD_DIR}
make -j

Running an application (example: acc01 with 4 threads)

ln -s ${SRC_DIR}/acceleritas/app/acc01/input input
./app/acc01/acc01 -m input/run.mac -t 4

About

Deprecated prototype for Celeritas/Geant4 integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published